Although It's not necessarily obvious how to augment a immediate member access like foo.num = num, You can certainly increase your standard setter with a further drive parameter: Under is yet another instance on how @property can help when just one has to refactor code which is taken from here https://luxuryprojectsgurugram.in/luxury-projects-gurugram-the-future-of-upscale-living-in-indias-fastest-growing-city/