The Idea is to have a master class, which saves different values. Many different classes are needing the values.
The problem is, I need to change the values. I need a solution that is really global, because…
Class1
MasterClass x = new MasterClass();
x.setValue(9);
Class2
x.getValue(); <---Doesn't work, even with new Master Class, because I create a new object.
And a don't want to add in every Constructor (MasterClass x). Any advise?