Re:Inheritance versus Composition
by marcosdumay on Thursday May 09, 2019 @01:16PM
(#19870130)
> Interfaces are a way of breaking out. They're additive, rather than hierarchical, from the implementing class perspective.
Java (and .Net by copying) choose to make interfaces additive and superclasses combinatorial. It's a design decision and in no way intrinsic. Other languages have different choices.
Java (and .Net by copying) choose to make interfaces additive and superclasses combinatorial. It's a design decision and in no way intrinsic. Other languages have different choices.