Even though it is not obvious how to augment a immediate member entry like foo.num = num, You can easily increase your traditional setter with an additional power parameter: Getters and setters are Employed in numerous object-oriented programming languages to make sure the basic principle of knowledge encapsulation(which is noticed https://jmsmanesar.in/jms-the-majestic-floors-imt-manesar-sector-m9-gurgaon/