Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
A pure virtual function makes it so the base class can not be instantiated, and the derived classes are forced to define these functions before they can be instantiated. This helps ensure the derived classes do not forget to redefine functions that the base class was expecting them to.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is &x in c++?
Can we change the basic meaning of an operator in c++?
How would perform Pattern Matching in C++?
Which of the following is evaluated first: a) && b) || c) !
Comment on c++ standard exceptions?
what is the use of Namespace in c++.
Write a program to find the reverse Fibonacci series starting from N.
What is the exit function in c++?
What do the header files usually contains?
why v use c++ even we have microprocessor
What is c++ used for in games?
What are the types of container classes?