Avoid multiple inheritance
From CSSEMediaWiki
(Difference between revisions)
Line 6: | Line 6: | ||
== See also == | == See also == | ||
* [[Riel's heuristics]] | * [[Riel's heuristics]] | ||
+ | * [[Multiple Inheritance]] | ||
[[Category:Riel's heuristics]] | [[Category:Riel's heuristics]] |
Revision as of 01:34, 23 July 2009
If you have an example of multiple inheritance in your design, assume you have made a mistake and prove otherwise. -- Riel's Heuristic 6.1, Arthur Riel 1996
Explanation
Riel believes that multiple inheritance (MI) is not evil or undesirable; however, it is rarely used correctly. If a situation exists that you believe requires multiple inheritance you should consider this carefully.