In a class only declaration of the function is there but
defintion is not there then what is that function?
Answers were Sorted based on User's Feedback
Answer / santhi
abstract functions
if u specify any function as abstract,there itself in it's
home class u can't find solution,u have to define those
function in the later derived classes through inheritance.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / manju
In a class only declaration of function is there but
definition is not there then such functions are called as
abstract functions.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / bharat
If a function does't have definition is a pure virtual
function . The class which have the pure virtual function is
called as Abstract Class or Interface.
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sahasra
We can call it as the interface also in case of java,where
the interface contains only definiton where as
implementation is in other classes which are implemented
this interface
Is This Answer Correct ? | 0 Yes | 0 No |
write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What are the defining traits of an object-oriented language?
What is the difference between while and do while loop? Explain with examples.
How do I make turbo c++ full screen?
Why cstdlib is used in c++?
What is binary search in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is <location>somewhere</location> #include <iostream> #include <fstream> #include <string> using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<<location << endl; cout << "Temperature: " << temperature << endl; system("pause"); } string find_field(string myPage,string find_string){ int temp=myPage.find(find_string); if(temp!=string::npos) { cout << "Match found at " << temp << endl; } return "found?"; } ///
What is the fastest c++ compiler?
Is vector a class in c++?
What is c++ vb?