Select Page

Inheritance Homework Help



Inheritance is one of the pillar of OOP whereas the other pillars of OOP are Polymorphism, Abstraction, and Encapsulation.

Inheritance is that a class which acquires the property of another class. We can say that in real world we have seen inheritance in our family a lot where a child can obtain habits or nature, color of hair, eye, similarity of face and many more from their forefathers.

Same rule applied in computer science that a child class can have access of their parent class subroutines and methods is called an inheritance. The above explanation is one of the best example of java inheritance.

There are two types of inheritance in Java.

  • Single Inheritance.
  • Multiple Inheritance.

Single inheritance is the simple or similar inheritance in single inheritance process one child have can access of its parent class methods and subroutines.

While in the multiple inheritance it is very different from single inheritance in which the parent class provides the access to their methods, objects, functions subroutines and characteristics to the other child classes.

Share This