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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay