What is Pure Virtual Function? Why and when it is used ?
Answer Posted / guest
The abstract class whose pure virtual method has to be
implemented by all the classes which derive on these.
Otherwise it would result in a compilation error.
This construct should be used when one wants to ensure that
all the derived classes implement the method defined as
pure virtual in base class.
Is This Answer Correct ? | 77 Yes | 44 No |
Post New Answer View All Answers
Is c++ a dying language?
What is the limitation of cin while taking input for character array?
how to connect with oracle 9i with server in socket program in c/c++
What is #include c++?
What is a loop? What are different types of loops in c++?
What is ostream in c++?
What is the use of this pointer in c++?
What are c++ stream classes?
What is meant by a delegate?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What is stoi in c++?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Write my own zero-argument manipulator that should work same as hex?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
What is the difference between *p++ and (*p)++ ?