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"
408
u/onlyrealperson Apr 06 '22
I think people just get intimidated by all the object oriented aspects, when in reality they aren’t as difficult as they seem