Created
February 16, 2014 16:01
-
-
Save adohe-zz/9036429 to your computer and use it in GitHub Desktop.
The diamond problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The "diamond problem" (sometimes referred to as the "deadly diamond of death"[4]) is an ambiguity that arises when two classes B and C inherit from A, and class D inherits from both B and C. If there is a method in A that B and/or C has overridden, and D does not override it, then which version of the method does D inherit: that of B, or that of C? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment