Comment on Why composition is often better than inheritanceComments−zak_mc_kracken12yWe've known this since at least 1994, when the GoF book [1] famously said:"Favor object composition over class inheritance"[1] http://www.amazon.com/Design-Patterns-Elements-Reusable-Obje...−drumdance12yHa, that's one of the few things I remember from that book. (Not knocking the book, just my poor memory.) I remember it being a big "a ha!" for a project I was working on.
Comments
We've known this since at least 1994, when the GoF book [1] famously said:
"Favor object composition over class inheritance"
[1] http://www.amazon.com/Design-Patterns-Elements-Reusable-Obje...
Ha, that's one of the few things I remember from that book. (Not knocking the book, just my poor memory.) I remember it being a big "a ha!" for a project I was working on.