Inheritance in Java The mechanism of deriving a new class from an old one is called Inheritance. The old class is called the base class or superclass or parent class, and the new one is called the subclass or derived class or child class. Advantage of Inheritance Here is the list of key advantages of inheritance in Java programming language. 1. Reusability: The main advantage of inheritance is Reusability. Reusability means that we can add additional features of an existing class without modifying it. 2. Time-Saving: The above concept of…
Read More