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 upcasting in C++?
Is c# written in c++?
What are all predefined data types in c++?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
which is best institue to learn C/C++ IN AMEERPET OR MAITHRIVANAM OR SR NAGAR, PLEASE HELP. THANKS IN ADVANCE
How much do c++ programmers make?
How would you obtain segment and offset addresses from a far address of a memory location?
Can I learn c++ without knowing c?
Explain the problem with overriding functions
Write a struct time where integer m, h, s are its members?
What is a dangling pointer in c++?
What is encapsulation in C++? Give an example.
0 Answers HAL, Honeywell, Zomato,