Hacker News new | ask | show | jobs
by jcelerier 1620 days ago
> After studying and doing OOP for about 5 years, I don't see the advantages of inheritance over composition.

I mean, "prefer composition over inheritance" was in the GoF book which is from 1994, and is one of the core OOP books. If you've just been studying OOP for five years, it's likely that you weren't even BORN when this was already industry-level good practice.

1 comments

Universities in my country are hopelessly stuck in the early 90s :)