Question OOP-ENC-0039
EasyWhat is the output of this code?
class Temp:
def __init__(self, c):
self.__c = c
def fahrenheit(self):
return self.__c * 9 / 5 + 32
print(Temp(100).fahrenheit())
- A.
Error
- B.
212
- C.
Sign up free to see the answer and a step-by-step explanation.