I'm not sure what forum I should have posed this question too, but hopefully this is a good start:
I have a class and I need to create multiple instances of this class. Each of the properties must be accessible from anywhere in the project. So I decided I should make the properties shared. Problem with this then is that these properties change in unison for all instances of the class.
So, I figured I would not even make instance of the class. Rather I would make new classes (I only need a few), and have them inherit the base class. Same problem though, the properties still change in unison as they were set to shared in the base class and thus will always be shared it seems.
Can anyone think of a clever way around this problem? Doesnt matter to me whether I need to create instances of the classes or multiple classes, I simply need to have multiple copies of the properties in this base class and have them accesible on a global level (without creating a whole lot of redundant code).
View Complete Post