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 constant in c++ with example?
When do we run a shell in the unix system? How will you tell which shell you are running?
What are inline functions? What is the syntax for defining an inline function?
What is a static member?
What are the differences between malloc() and calloc()?
What do you mean by volatile and mutable keywords used in c++?
What is linked list in c++?
What are the advantages of inheritance in c++?
What is istream and ostream in c++?
What is object oriented programming (oop)?
What are 2 ways of exporting a function from a dll?
How does c++ structure differ from c++ class?
How long does it take to get good at leetcode?
What is meant by entry controlled loop?
What do you mean by storage classes?