What is inheritance?
Inheritance is an object orientation concept that allows reusability of code / design. Basic sense of inheritance is that if one class is predefined than another class which also passes property of existing class can be defined and can inherit the property of existing class. Such as, if a class named student is defined and another class for Post Graduate students is to be defined then PG Student class could inherit student class.