|
![](/i/fill.gif) |
Am 13.08.2012 23:00, schrieb Le_Forgeron:
> Le 13/08/2012 22:22, clipka nous fit lire :
>>
>> As current widespread belief is that virtually all multiple inheritance
>> use cases can be covered with the interface approach, it seems to make
>> sense to avoid this extra overhead.
>
> When all you have is a hammer, everything is a nail.
>
> When you make the conception, once you know there can be only one true
> linear hierarchy of classes and interfaces on the side, you integrate it
> in your problem. You might even forbid yourself of thinking about
> multiple inheritances.
As I said, it's "current widespread belief"; I won't dare to make any
claims about its boolean value, but on the basis of this belief, the
decision to restrict multiple inheritance to interfaces is perfectly
logical.
Post a reply to this message
|
![](/i/fill.gif) |