But subclass inheritance implies subtyping, doesn’t it? I agree that inheritance and subtyping are distinct concepts, but if you consider that only subclass inheritance exists, how is it distinct from subtyping?
But wait, (don't apologise!), what are the subtyping-specific flaws? Did you mean subclassing-specific?
-
-
No, I meant subtyping specific. For example, rigid hierarchies - if you have an A and you need a B, and A is not a subtype of B, you’re going some fairly involved ceremonies to make things fit. That’s subtyping. The diamond problem is inheritance specific.
-
Subclassing, being both, suffers from both problems.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.