What do you mean by pure virtual functions in C++? Give an example?
Answer Posted / hrpynux@gmail.com
A pure virtual function is a virtual function in C++ for which we need not to write any function definition and only we have to declare it. It is declared by assigning 0 in the declaration. An abstract class is a class in C++ which have at least one pure virtual function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does namespace mean in c++?
What is tellg () in c++?
Do class method definitions?
Write a note about the virtual member function?
What is the use of ::(scope resolution operator)?
Write some differences between an external iterator and an internal iterator?
which of the following is not an secondary constant a) array b) real c) union
Is dev c++ a good compiler?
How can you say that a template is better than a base class?
Which ide is best for c++?
What is near, far and huge pointers? How many bytes are occupied by them?
What is the need of a destructor?
Where do I find the current c or c++ standard documents?
What are maps in c++?
Which field is used in c++?