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 the use of volatile variable?
the maximum length of a character constant can be a) 2 b) 1 c) 8
What is difference c and c++?
Do we have to use initialization list in spite of the assignment in constructors?
What is an associative container in c++?
differance between copy & clon
What are inline functions?
Where do I find the current c or c++ standard documents?
If there are two catch statements, one for base and one for derived, which should come first?
Is it possible to get the source code back from binary file?
What is a local variable?
How to construct virtual constructor
6 Answers CIStems Software, Symphony,