What are the benefits of inheritance in Java?

Benefits of Inheritance Inheritance helps in code reuse . The child class may use the code defined in the parent class without re-writing it. Inheritance can save time and effort as the main code need not be written again. Inheritance provides a clear model structure which is easy to understand.

Sizin İçin Seçtik  What is inheritance in Java real life example?

Leave a Reply

Your email address will not be published. Required fields are marked *