What is inheritance in Java explain?

Inheritance is one of the key features of OOP that allows us to create a new class from an existing class . The new class that is created is known as subclass (child or derived class) and the existing class from where the child class is derived is known as superclass (parent or base class).

Sizin İçin Seçtik  Is Super necessary in constructor?

Leave a Reply

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