What are the advantages 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  Are flutter packages open source?

Leave a Reply

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