While It isn't clear how to enhance a immediate member obtain like foo.num = num, You can easily augment your regular setter with an extra pressure parameter: Getters and setters are Utilized in quite a few item-oriented programming languages to ensure the principle of data encapsulation(that's found as the bundling https://conscientgurugram.in/