Definition

Limitation

  • Needs more time to process, as it needs to navigate through multiple classes for its implementation
  • The base class and the child class, are very tightly coupled together
  • Inheritance might be complex for implementation, if not correctly implemented

Types

  • Single inheritance (AB)
  • Multiple inheritances (not supported by java)
  • Multi-level inheritance (ABC)
  • Multipath inheritance
  • Hierarchical inheritance (more than one derived classes are created from a single base class and futher child classes act as parent classes for more than one child classes)
  • Hybrid inheritance (combination of one or more inheritance)

types-of-inheritance