The truth is you simply don't use inheritance much outside of theory. Only use it for a strict is-a relationship where you actually need to substitute it. And even then interfaces might fit your need better. Outside of that, composition feels like the way to go.
Or we could engage in mutually beneficial discussion rather than throwing 10-ish years of professional Java experience down the trash because "lol, junior"
155
u/[deleted] Apr 06 '22
[removed] — view removed comment