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 rtti in c++?
What is a loop? What are different types of loops in c++?
What is a dangling pointer in c++?
What is the basic difference between C and C++?
Why is c++ still popular?
What do you mean by “this” pointer?
What is the purpose of template?
Which compiler does turbo c++ use?
Where the memory to the static variables is allocated?
What is a friend function in c++?
What are shallow and deep copy?
What's c++ used for?
Mention the ways in which parameterized can be invoked. Give an example of each.
Explain virtual class?
What is nested class in c++?