Why is Inheritance used in OOPS?
Anonymous
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.
Check out your Company Bowl for anonymous work chats.