State

Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.

Examples in C++
No examples yet.
You can see if there are examples in other languages or
be the first to post an example in C++!