The pattern encapsulates state into separate classes and [b]delegates[/b] to the object representing the current state, we know that behavior changes along with the internal state.
In reality, however, you know that we are using composition to give the appearance of a class change by simply referencing different state objects.
In reality, however, you know that we are using composition to give the appearance of a class change by simply referencing different state objects.