Open carb0nxl opened 1 year ago
Hm... I think "above" refers to the sample nearly a page earlier (it's identical to the Score
class immediately before, but does not include the Score best = new Score();
before it). At this point, I'll never know what I had intended, but I wonder if I was referring back that far, especially when the code is repeated right away.
I definitely think there's room for some cleanup here. Thanks for pointing it out!
I discovered a small error when reading the print copy of the 5th edition:
In the first sentence of page 147 (Level 18: Instances of Classes), it says "The code above defines the Score class."
However, the code it refers to is actually below that paragraph, not above.