state design pattern - when a new state add to parent state, this cause another state also change, what do we do to prevent change another state
In state design pattern,In the worst case when a new state is added to parent State, it causes all other states to change as well. What changes need to be made to the design to prevent successive changes?