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 a singleton class c++?
What is the advantage of an external iterator.
How do you sort a sort function in c++ to sort in descending order?
What are the various compound assignment operators in c++?
How much do c++ programmers make?
Give 10 points of differences between C & C++.
Can a Structure contain a Pointer to itself?
What is array in c++ example?
Implement strcmp
What is the use of volatile variable?
How can I improve my c++ skills?
Write about c++ storage classes?