diff --git a/data/part-9/1-inheritance.md b/data/part-9/1-inheritance.md index bdbc065c1..9ce6ff338 100644 --- a/data/part-9/1-inheritance.md +++ b/data/part-9/1-inheritance.md @@ -1220,6 +1220,8 @@ What happens in detail when we call the toString method of a three-dimensional p As we can see, the sequence of events caused by the method call has multiple steps. The principle, however, is clear: The definition for the method is first searched for in the class definition of the actual type of the object. If it is not found, we next examine the superclass. If the definition cannot be found there, either, we move on to the superclass of this superclass, etc... +If you see the `Counter` and `SuperCounter` quiz here, the correct output is `2`. The calls to `subtractFromNumber` use the inherited implementation from `Counter`, and only `addToNumber` is overridden in `SuperCounter`. + @@ -2205,4 +2207,3 @@ false -