Skip to content

Instantly share code, notes, and snippets.

@adohe-zz
Created February 16, 2014 16:01
Show Gist options
  • Save adohe-zz/9036429 to your computer and use it in GitHub Desktop.
Save adohe-zz/9036429 to your computer and use it in GitHub Desktop.
The diamond problem
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