Null Object Pattern - Relation To Other Patterns

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:

    “Any relation to the land, the habit of tilling it, or mining it, or even hunting on it, generates the feeling of patriotism. He who keeps shop on it, or he who merely uses it as a support to his desk and ledger, or to his manufactory, values it less.”
    —Ralph Waldo Emerson (1803–1882)

    “Our sympathy is cold to the relation of distant misery.”
    —Edward Gibbon (1737–1794)

    “For the man who should loose me is dead,
    Fighting with the Duke in Flanders,
    In a pattern called a war.
    Christ! What are patterns for?”
    —Amy Lowell (1874–1925)