State Design Pattern
The State Design Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class.
The State Design Pattern allows an object to alter its behavior when its internal state changes. The object will appear to change its class.