While It is far from noticeable how to reinforce a direct member entry like foo.num = num, You can easily increase your standard setter with yet another force parameter: Underneath is another illustration on how @property might help when a person needs to refactor code which happens to be taken https://smartworldeveloper.in/