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:
“Hesitation increases in relation to risk in equal proportion to age.”
—Ernest Hemingway (18991961)
“Science is the language of the temporal world; love is that of the spiritual world. Man, indeed, describes more than he explains; while the angelic spirit sees and understands. Science saddens man; love enraptures the angel; science is still seeking, love has found. Man judges of nature in relation to itself; the angelic spirit judges of it in relation to heaven. In short to the spirits everything speaks.”
—HonorĂ© De Balzac (17991850)
“Ive begun to appreciate the generational patterns that ripple out from our lives like stones dropped in water, pulsing outward even after we are gone. Although we have but one childhood, we relive it first through our childrens and then our grandchildrens eyes.”
—Anne Cassidy (20th century)