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
What is an associative container in c++?
Does c++ have a hash table?
What happens when the extern "c" char func (char*,waste) executes?
what are the iterator and generic algorithms.
How come you find out if a linked-list is a cycle or not?
What does it mean to declare a member function as virtual?
What are the uses of c++ in the real world?
What is a manipulative person?
Is nan a c++?
Write a struct time where integer m, h, s are its members?
Can you overload the operator+ for short integers?
What is difference between array and vector in c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Difference between overloaded functions and overridden functions