M
Morten Snedker
How do I share a property across classes?
For example I'll have three classes:
- Settings
- Class1
- Class2
Class1 will initiate the class Settings with a New Settings and will
followingly set the properties in the class Settings.
After Class1 has set the properties of Settings, Class2 will use these
already set properties, but without a New.
How do I access the property values set by Class1 - from Class2? I
should I consider another approach?
Regards /Morten Snedker
For example I'll have three classes:
- Settings
- Class1
- Class2
Class1 will initiate the class Settings with a New Settings and will
followingly set the properties in the class Settings.
After Class1 has set the properties of Settings, Class2 will use these
already set properties, but without a New.
How do I access the property values set by Class1 - from Class2? I
should I consider another approach?
Regards /Morten Snedker