Map / Classes / Check 2
⌨️ Write
Check: a thermostat
Finish Thermostat: setTarget keeps the target between 10 and 30 (values outside are moved to the nearest limit), getTarget returns it, and toString returns "Target: " and the target.
- class
- private
- setter
- toString