|
|
|
|
|
by Jtsummers
3298 days ago
|
|
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. |
|