By chance does anyone know if there is a way to make a set function for my class that will run regardless of what variable is being set?
like if someone does…
anInstanceOfMyClass.anyVariable=“whatever”;
it will always run function X.
I want my code to have a function that runs every time someone tries to set the value of a variable in my class, or create a new variable that does not even exist yet in the class.