What is meant by Inheritence? What are its advantages ? Write a c++ program to explain Inheritence
Answers
Answered by
1
Answer:
The main advantages of inheritance are code reusability and readability. When child class inherits the properties and functionality of parent class, we need not to write the same code again in child class. This makes it easier to reuse the code, makes us write the less code and the code becomes much more readable.
Similar questions