Though It isn't obvious how to reinforce a direct member accessibility like foo.num = num, You can easily increase your conventional setter with an extra power parameter: This is excellent, isn't really it: You can begin with the simplest implementation imaginable, and you are free of charge to later on https://conscientgurugram.in/