What are the advantages of inheritance in java explain multilevel inheritance?

Advantages of Inheritance Overriding: With the help of Inheritance, you can override the methods of the base class . Data Hiding: The base class in Inheritance decides which data to be kept private, such that the derived class will not be able to alter it.

Sizin İçin Seçtik  What is inheritance in Java with realtime example?

Leave a Reply

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