Although It is far from apparent how to reinforce a direct member obtain like foo.num = num, You can easily increase your traditional setter with an additional power parameter: Beneath is another example on how @property will help when 1 should refactor code which happens to be taken from below https://centralparksector104.co.in/