From b7418dc5d06617cc8009d6ce4882d438179175df Mon Sep 17 00:00:00 2001 From: bitflip Daemon Date: Sat, 18 Apr 2026 16:24:08 -0400 Subject: [PATCH] Clarify the inheritance quiz output --- data/part-9/1-inheritance.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -