INHERITANCE


Suppose a father owns a house and he has a son .So the son is indirectly
owner of the house and can access all facilities of the house .
Inheritance in Java:
As we know that java is Object Oriented Programming Language and work on Object instead of functionalities similar with real world example java support Inheritance .In java where Parent class/superclass inherit its properties to child/sub class.
Types of Inheritance
1.Single Inheritance:-
Single inheritance enables a derived class to inherit properties and behavior from a single parent class.
2.Multiple Inheritance:-
Multiple Inheritance is a feature of object oriented concept, where a class can inherit properties of more than one parent class.

Note:we can only achieve multiple inheritance by interfaces in java .


hope this blog will help you to understand concept of inheritance in java