3 ms·
>Even single inheritance with multiple subclasses makes following the potential code paths mentally as many times harder as there are classes that extend or ove
by mhogomchungu 12y ago
>Even single inheritance with multiple subclasses makes following the potential code paths mentally as many times harder as there are classes that extend or override the common base class.
Composition over inheritance is a technique used to reduce this problem.
[1] http://en.wikipedia.org/wiki/Composition_over_inheritance http://en.wikipedia.org/wiki/Composition_over_inheritance