|
|
|
|
|
by incepted
3685 days ago
|
|
> Pardon my ignorance but I thought by now everyone agreed that Multiple inheritance was the root of all evil. Hardly. How it's implemented makes the difference. I'd say the general consensus is that C++' version of it is probably the worst (although to be fair, as much as I dislike C++, its implementation of MI has never really bothered me much in practice). Modern languages support multiple inheritance of implementations with traits, which have a few additional restrictions compared to classes. These restrictions address some of the flaws that MI can have. The bottom line is that you will rarely need MI and when you do, its flaws will probably not be much of a hindrance, so overall, it's a pretty overblown problem. |
|