The state pattern, which closely resembles Strategy Pattern, is a behavioral software design pattern, also known as the objects for states pattern. This pattern is used in computer programming to represent the state of an object. This is a clean way for an object to partially change its type at runtime.
Famous quotes containing the words state and/or pattern:
“The State is the altar of political freedom and, like the religious altar, it is maintained for the purpose of human sacrifice.”
—Emma Goldman (18691940)
“We took advantage of [the Indians] ignorance and inexperience to incline them the more easily toward treachery, lewdness, avarice, and every sort of inhumanity and cruelty, after the example and pattern of our ways.”
—Michel de Montaigne (15331592)