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:
“The difference between objective and subjective extension is one of relation to a context solely.”
—William James (18421910)
“In relation to God, we are like a thief who has burgled the house of a kindly householder and been allowed to keep some of the gold. From the point of view of the lawful owner this gold is a gift; From the point of view of the burglar it is a theft. He must go and give it back. It is the same with our existence. We have stolen a little of Gods being to make it ours. God has made us a gift of it. But we have stolen it. We must return it.”
—Simone Weil (19091943)
“The ninety percent of human experience that does not fit into established narrative patterns falls into oblivion.”
—Mason Cooley (b. 1927)