Skip to content

Latest commit

 

History

History
Define:
	The state pattern, which closely resembles Strategy Pattern, is a behavioural software design pattern, also known as the objects for states pattern.

Usage:
	When the behaviour of an object needs to change based on its internal state

Intent:
	Change behaviour of object with each state
	Encapsulate the logic of each state into a single object
	Allow for dynamic state discovery
	Make unit testing easier