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 |
Explain deep copy and a shallow copy?
What is ios in c++?
Which is best c++ or java?
Is it possible to use a new for the reallocation of pointers ?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Please post the model question paper of hal?
What do c++ programmers do?
Can I learn c++ without learning c?
What are smart pointers?
how many trys can we write in one class
Why c++ is so important?
What's the "software peter principle”?