Inheritance is the most popular feature of object oriented programming(OOPs).
It means reusability of code.In Software engeneering , reusability is the use of existing code in some form within the software product development
In java, inheritance allow the programmer to use the code of one class into another class through the concept or relation of parent and child.
The child can use the resources or code of parent class by acquiring its methods ,behaviors,data members and also add their own methods and data member by the help of
The child class is also known as sub -class and Parent class also called as Super-class or base class.
Inheritance represents the parent-child relationship, also known as IS-A relationship.
Uses of Inheritance
1) Code reusability 2) Saves time in program development. 3) Method Overriding(Run time Polymorphism) know more about it later in tutorials.
Syntax of inheritance
How to use Inheritance?
extends The extends is keyword that are use to extend or show that , the child class acquired or inherit the base or parent class.