Practice · 2 of 4
Add behavior to a class
CHALLENGE
Difficulty: beginner+25 XP
The Temp class stores celsius. Add double toFahrenheit() returning c × 9/5 + 32, and boolean isFreezing() returning true at or below 0. Use the stored field — do not add parameters.
Press Submit to check your solution.
Back to lesson: Practice: Class workshop