Relation To Other Patterns
It can be regarded as a special case of the State pattern and the Strategy pattern.
It is not a pattern from Design Patterns, but is mentioned in Martin Fowler's Refactoring and Joshua Kerievsky's book on refactoring in the Insert Null Object refactoring.
Chapter 17 is dedicated to the pattern in Robert Cecil Martin's Agile Software Development: Principles, Patterns and Practices
Read more about this topic: Null Object Pattern
Famous quotes containing the words relation to, relation and/or patterns:
“We must get back into relation, vivid and nourishing relation to the cosmos and the universe. The way is through daily ritual, and is an affair of the individual and the household, a ritual of dawn and noon and sunset, the ritual of the kindling fire and pouring water, the ritual of the first breath, and the last.”
—D.H. (David Herbert)
“Concord is just as idiotic as ever in relation to the spirits and their knockings. Most people here believe in a spiritual world ... in spirits which the very bullfrogs in our meadows would blackball. Their evil genius is seeing how low it can degrade them. The hooting of owls, the croaking of frogs, is celestial wisdom in comparison.”
—Henry David Thoreau (18171862)
“Teasing is universal. Anthropologists have found the same fundamental patterns of teasing among New Zealand aborigine children and inner-city kids on the playgrounds of Philadelphia.”
—Lawrence Kutner (20th century)