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 c++ is used for?
Which software is used for c++ programming?
What does override mean in c++?
How to declaring variables in c++?
How delete [] is different from delete?
What's c++ used for?
How a modifier is similar to mutator?
What do you mean by late binding?
Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?
What is data types c++?
what is c++
What is a singleton c++?