C++ Inheritance Question:

Download Job Interview Questions and Answers PDF

Explain the advantages of inheritance?

C++ Inheritance Interview Question
C++ Inheritance Interview Question

Answer:

Allows the code to be reused as many times as needed. The base class once defined and once it is compiled, it need not be reworked.
Saves time and effort as the main code need not be written again.

Download C++ Inheritance Interview Questions And Answers PDF

Previous QuestionNext Question
What is a base class?How to implement inheritance in C++?