Null Object
By: B. Woolf
Summary: A Null Object is a surrogate for another object with the same interface, but the Null Object does nothing.
Pattern: Null Object
A Null Object is a surrogate for another object with the same interface, but the Null Object does nothing.
- When a Null Object does not require any internal state, use Singleton [Gamma+95]. 
 
- This pattern is similar to Proxy [Gamma+95], which provides a level of indirection when accessing a real object. A Null Object replaces the real object. 
 
Published in: PLoPD3
Pages: 5-18
Category: Behavioral