Inheritance in Java Share on Facebook

In general inheritance meaning is acquiring the characteristics of ancestors. Here the inheritance also used for the same purpose. Inheritance is One of the feature which java offers. Inheritance enable us to create a new Class from the existing Class . The existing Class is called as Base Class , Parent Class . The class which is created newly is called as child class or derived class. The derived Class obtaines the properties of the base Class or parent Class . Code reusability is achieved through Inheritance.

There are different types of inheritances are present. Those are
  1. Single Inheritance
  2. Multi Level Inheritance
  3. Multiple Inheritance
  4. Hierachial Inheritance
  5. Hybrid Inheritance