I'm a bit confused about the use of the static keyword in the following case:
In 1 class I see this declared at the top of the class say called Data:
in constructor of same class:
What exactly does above do? I know the general stuff about:
(1) making a static reference to an object at start of class.
(2) making a static reference to a static method and initializing variables there.
I understand that is a static reference and only 1 copy exists for the class, but in the constructor is 1 creating a new object each time it's called for this static reference? Is there a point to this? Any help much appreciated as I find this confusing.