You might read Composition Over Inheritance.
— Raul Junco (@RaulJuncoV) November 5, 2023
But what does that mean?
Inheritance establishes an "Is-a" relationship between a base class and a subclass.
It's a quick and intuitive way to share behavior between classes.
But make the codebase difficult to maintain.
-… pic.twitter.com/Qy0aiE2aXD