StatePattern (state mode) ----- Java / .Net

Mode state (State Pattern), the behavior of the class is based on its state change. This type of design pattern belongs behavioral patterns.

In the state model, we create the context object represents the behavior of various objects and a state of change as the state of the object is changed.

Guess you like

Origin www.cnblogs.com/vic-tory/p/12147456.html