Did you fix the typo @thepannu786? Does your code work now? Do you need more help?
I think there is more going on, but we’ll need to see your updated code to help more.
For instance, you need to make a getter and setter for temperature, not c and f. Your setter should have an argument, the value the user would like to set the temperature to be.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Hmm thanks for the help I will work on this tomorrow as it is now 0037 here and my brain could use some rest. I’m not gonna skip this until I understand it very well. If I get stuck again I might call for help.
I did not take offence or felt bad about your answer, don’t worry. I’ve got a thick skin. ; )
There are many things that were wrong with your code, so there was no point solving every single mistake little by little.
It shows that you were not grasping OOP concepts, so the best thing to do time-wise is try to learn it from the very basics. That’s why my answer was just a pointer to tutorials.
What I mean is - you can try to debug your app for 3 hours or you can watch tutorial in 2 hours and try to debug your app in the last hour. That is a better approach time-wise.