Dell Technologies Interview Question

Why is Inheritance used in OOPS?

Interview Answer

Anonymous

Mar 29, 2023

Inheritance allows you to reuse code that is already written in a parent class, instead of duplicating it in every subclass. This makes code maintenance easier and reduces the overall size of the codebaseand Inheritance facilitates polymorphism.