I have 3 subclasses (LowState, MediumState, HighState) which derive from the same superclass (State).
Within the superclass, State, I have declared several variables which need to be accessed and changed from the 3 subclasses.
Is it possible to instantiate these 3 subclass objects from the same superclass object so that they can all access the variables from the same object?
Alternatively, I can just declare the variables in each subclass and then pass the data between the objects. However, I'm concerned that this chaining method could get out of hand.