Define Inheritance.

The process by which one class acquires the properties(instance variables) and functionalities of another class is called inheritance.We use inheritance only if an is-a relationship is present between the two classes.