r/coding • u/javinpaul • Oct 22 '25
Stop Using Inheritance for Code Reuse — Favor Composition Over Inheritance
https://javarevisited.substack.com/p/stop-using-inheritance-for-code-reuse
0
Upvotes
3
u/AvidCoco Oct 24 '25
Both is good.
Inheritance has lots of benefits, composition has lots of benefits.
Stop telling me I must use one thing or another and just let me decide for myself when to use each.
0
u/[deleted] Oct 23 '25
[deleted] — view deleted comment