What is Pure Virtual Function? Why and when it is used ?
Answer Posted / harry
pure virtual function declared in the base class.
pure virtual function having intializer=0;
pure virtual function also know as do nothing function &
dummy function.
class contain atleast one pure virtual function.
object cannote be create of that class in which pure
virtual function are declared and that class are know as
abstract class.
Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is iterator in c++?
Why is c++ still popular?
Program to check whether a word is a sub-string or not of a string typed
What is difference between array and vector in c++?
Is swift faster than go?
Why c++ does not have finally?
What is the type of this pointer in c++?
What is a static member?
If a function doesn’t return a value, how do you declare the function?
What is an operator in c++?
How to declare a function pointer?
What happens when you make call 'delete this;'?
Explain storage qualifiers in c++.
How can you quickly find the number of elements stored in a dynamic array?
Is it possible to provide default values while overloading a binary operator?