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 a vector c++?
What is the use of :: operator in c++?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What is different in C++, compare with unix?
Where is atoi defined?
What is a class definition?
Explain what data encapsulation is in c++?
What are single and multiple inheritances in c++?
Is c++ free?
What is the difference between delegation and implemented-in-terms-of?
What is the use of volatile variable?
What is difference between rand () and srand ()?
How do you declare A pointer to a function which receives nothing and returns nothing
How do I use turbo c++?
Give 10 points of differences between C & C++.