Although It isn't apparent how to augment a direct member access like foo.num = num, You can certainly increase your regular setter with an additional drive parameter: Underneath is yet another example on how @property may help when one must refactor code which happens to be taken from right here https://centralparksector104.co.in/central-park-104-sector-104-gurgaon-a-new-benchmark-in-luxury-living-on-dwarka-expressway/