The only problem with what you’re doing is that the temperature as input/output in this class is supposed to refer to Celsius except for the constructor, when it is in Fahrenheit.
It looks like you’re treating the temperature as Fahrenheit both in the constructor and in the getter method.
@amejl172 you will need to convert your getter temp values as well. Your constructor will take in fahrenheit, but getter and setter both needs to convert to celsius and fahrenheit respectively… something like below-