Behavioral patterns: State

Behavioral patterns: Visitor ¦ Template method ¦ Strategy ¦ State ¦ Observer ¦ Memento ¦ Mediator ¦ Iterator ¦ Interpreter ¦ Command ¦ Chain of responsibility


State pattern – implements parent state interface (methods behaviors) for each concrete state of object:

state pattern interface

Leave a comment

Your email address will not be published. Required fields are marked *