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).
Read moreWhat are the rules of inheritance in Java?
Rules of Inheritance in Java
Read more