State Pattern « Design Pattern « Java Tutorial






34.17.State Pattern
34.17.1.State: changing object behavior
34.17.2.Simple demonstration of the State pattern.