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
How the delete operator differs from the delete[]operator?
Which format specifier is used for printing a pointer value?
If there are two catch statements, one for base and one for derived, which should come first?
Write about c++ storage classes?
Explain function overloading
Difference between declaration and definition of a variable.
What are static type checking?
When do we use copy constructors?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Is it possible to have a recursive inline function in c++?
Write a program in C++ for Fibonacci series
How long will it take to learn programming?
What is a tuple c++?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Explain shallow copy?