Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint: the discount chain

โญโญโญ advancedโณ 20 min read๐Ÿ“ Lesson 196 of 256

A three-level override chain where each level extends the last.

Chained overrides are the purest test of super: each level either delegates with super or recomputes from the original amount โ€” and the two styles must agree. Trace 99 through the chain before coding; integer division makes 99/20 = 4, not 4.95.