Nixon Diamond
Inheritence Conflicts
- One of the problems with inheritence occurs when
a class (or instance) inherits from multiple categories.
- This stuff was figured out when Richard Nixon was the US president,
so the canonical example is called the Nixon Diamond.
-
- Inheritence conflicts are one reason many programming languages
do not allow multiple inheritence.
- Note that it's relatively easy to detect inheritence conflicts.
- If you detect one, how might the system resolve the conflict?