diff --git a/03ln-inheritance.md b/03ln-inheritance.md index 99cae42..9c0da5e 100644 --- a/03ln-inheritance.md +++ b/03ln-inheritance.md @@ -373,6 +373,7 @@ As you can see, interfaces with default methods allow for a very modular and fle # The Diamond Problem + @@ -417,7 +418,7 @@ class Bottom implements Left, Right { } ``` -The diamond problem describes a name conflict that arises from a class hierarchy, where two implemented classes have the same name. +The diamond problem describes a name conflict that arises from a class hierarchy, where two implemented methods have the same name. In our example, the interfaces `Left` and `Right` add default (different) implementations for `method()`. Use `super.` to access the implementation of a **base class** (here: none given), but use `.super.` to access default methods.