Practice · 3 of 3
Timed (15 min): full class
CHALLENGE
Difficulty: advanced+25 XP
Set **15 minutes**. Implement the Timer class: constructor takes the start value (> 0 expected). tick(n) counts down by n but **never below 0**. reset() returns the timer to its constructor value. expired() is true when the value is 0. value() reports the current count.
Press Submit to check your solution.
Back to lesson: Practice: Timed set: against the clock