Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getter fahrenheit:
- return celsius * 9 / 5 + 32;
- class temperature:
- variable state
- def init:
- state = 1
- def getter fahrenheit:
- if state == 1:
- state = 0
- return -42
- return celsius * 9 / 5 + 32;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement