Although It is far from obvious how to reinforce a immediate member entry like foo.num = num, You can easily increase your traditional setter with an additional power parameter: In prolonged living jobs debugging and refactoring can take far more time than crafting the code alone. There are several downsides https://smartworldeveloper.in/smart-world-69-gurgaon-redefining-urban-luxury-living-in-sector-69/