I am writing a program where one is supposed to answer questions. The number of correct answers is held by a variable called:
correctAnswers
But as the case is now, I can change the value of
correctAnswers
by simply typing in
correctAnswers = (new Value)
in the console. I don't want this to be possible, is there a way I can disable the possibility to alter a variables value through the console?