One of the key characteristics of object-oriented languages is inheritance. Getting traits from other people is the process of inheriting. For instance, a child picks up traits from their parents.
![What is Inheritance](https://siliconvlsi.com/wp-content/uploads/2023/07/What-is-Inheritance.png)
Inheritance in Java refers to the technique of adding new functionality to existing classes by adding new members.
The base class, parent class, or superclass is the original class. The new class that is descended from the parent is referred to as a child class, subclass, or derived class.
To extend a class in Java, use the extends keyword. Every class in Java extends java.lang.since the object class in Java is the superclass for all classes. ‘is-a’ relationships are generated when we create new classes using inheritance.