What Inheritance in Java and How It can Help You (opinionstage.com)
Inheritance is a process in which a new class is derived from an existing class. In Java, classes may inherit or acquire the properties (variables and methods) and behaviors from its predecessors or parent class.
In other words,
A subclass inherits the characteristics (properties and methods) of its superclass (ancestor).
Let us dig in deeper to get insights into Inheritance in java.