What are the advantages of inheritance?

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.

Read more