3 ms·
One of the very first things I learned almost immediately after college is that inheritance typically is a bad idea and that composition is a better strategy. W
by johnkchow 15y ago
One of the very first things I learned almost immediately after college is that inheritance typically is a bad idea and that composition is a better strategy. With inheritance you have so much thinking overhead with parent to children relationships when most abstractions could easily be viewed as building it through small pieces. Its sad but during my 5 years in UCLA I have not heard the word "composition" once.