all 2 comments

[–]BobQuixote 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

Relevant: https://en.m.wikipedia.org/wiki/Composition_over_inheritance

Inheriting rarely adds value, especially in comparison to just holding a reference to the class you would have extended.

[–]gorpo85[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Inheriting rarely adds value, especially in comparison to just holding a reference to the class you would have extended.

good point. thanks