News for hackers. Stuff that matters.
Re:Ask HN: What's the most simple thing you struggle to unde... by Jtsummers on Thursday June 08, 2017 @09:55PM (#14518680)
It allows you to compose types and avoid the issues (complications not necessarily problems) of multiple inheritance.

For example, where in your hierarchy do you stick the AbstractSerializable class? If it's an interface like ISerializable you just implement it at whatever level you're at.

With multiple inheritance you don't need interfaces because you can just inherit from multiple base classes.

There are no comments on this comment yet.