What are the limitations of inheritance?

  • Increases the time and effort required to execute a program as it requires jumping back and forth between different classes
  • The parent class and the child class get tightly coupled
  • Any modifications to the program would require changes both in the parent as well as the child class
  • Needs careful implementation else would lead to incorrect results

To know more about inheritance in Java and Python, read the below articles:

  • Inheritance in Java
  • Inheritance in Python

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *