Even though it is not obvious how to reinforce a direct member obtain like foo.num = num, You can certainly increase your conventional setter with yet another power parameter: Down below is yet another instance on how @property may help when just one must refactor code which is taken from https://trehan-floors.in/