Inheritance in java

when one class acquires the properties of another class then this concept is called inheritance. This is used for reuse the existing functionality.
For Example: children acquire the properties of their parents.
New class is called sub class and existing class is called super class.

Leave a Comment