3 ms·
> Pragmatists used inheritance Because at some point mainstream OO languages made inheritance easy and composition harder, nothing more. Composition with Java
by throw_m239339 3y ago
> Pragmatists used inheritance
Because at some point mainstream OO languages made inheritance easy and composition harder, nothing more.
Composition with Java used to be verbose. Inheritance declaration was simply a single keyword.
If Java had "mixins" from the start, people would have used composition way more.
- StressedDev 3y agoI saw a lot more composition than inheritance in C++ and C#. I think inheritance and polymorphism have their place. Like anything, they can be misused.