how would I go about making a variable in a class, that could be read directly but not written as such?
is allowed but
class1.variable = true; is not...
however I don't want a
const , I want it to be able to be set from within the class, just not directly. How would I do this?