Explain the benefits of proper inheritance.

Answer

The biggest benefits of proper inheritance are : a.) substitutability and b.) extensibility.

Substitutability – The objects of a properly derived class can be easily and safely substituted for an object of its base class.

Extensibility – The properly derived class can be freely and safely used in place of its base class even if the properly derived class is created a lot later than defining the user code. Extending the functionalities of a system is much easier when you add a properly derived class containing enhanced functionalities.

All cpp Questions

Ask your interview questions on cpp

Write Your comment or Questions if you want the answers on cpp from cpp Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---