DEV Community

John Akindipe
John Akindipe

Posted on

Inheritance in OOP

This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer.

Explainer

Inheritance is an important paradigm in OOP. It refers to the concept that methods and properties defined by a parent class are available on all of its subclasses, e.g. an Animal class with the method bark will have this method available on other classes which extend it.

Top comments (1)

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ

This is specifically class-based OOP and doesn't apply to prototype-based OOP