3 ms·
Inheritance is a conceptually more complex issue that isn't just about code reuse and doing things slightly differently than a parent. Composition doesn't make
by stewbrew 8y ago
Inheritance is a conceptually more complex issue that isn't just about code reuse and doing things slightly differently than a parent. Composition doesn't make such assumptions. It only assumes that the parts conform with some interface.