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:
“There is the falsely mystical view of art that assumes a kind of supernatural inspiration, a possession by universal forces unrelated to questions of power and privilege or the artists relation to bread and blood. In this view, the channel of art can only become clogged and misdirected by the artists concern with merely temporary and local disturbances. The song is higher than the struggle.”
—Adrienne Rich (b. 1929)
“The whole point of Camp is to dethrone the serious. Camp is playful, anti-serious. More precisely, Camp involves a new, more complex relation to the serious. One can be serious about the frivolous, frivolous about the serious.”
—Susan Sontag (b. 1933)
“The ninety percent of human experience that does not fit into established narrative patterns falls into oblivion.”
—Mason Cooley (b. 1927)