What is use of inheritance in Java?

The basic idea of Inheritance is to create the new class (called child class or derived or subclass) from an existing class (called parent class or Base or Superclass) . That is, the child class inherits the properties (methods and fields) of the parent class.

Sizin İçin Seçtik  What is aggregation in Java example?

Leave a Reply

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