Skip to main content

Posts

Showing posts with the label null object

Behavioral Patterns : Null Object

Properties: -            Simply providing a do-nothing implementation of a particular interface. -            Concrete class does nothing, all requests are effectively ignored. Implementation: -            AbstractOperation  declares operations. -            RealOperation   implements AbstractOperation and defines operations. -            NullOperation   implements AbstractOperation and leaves operations empty. -            Client  executes operations on AbstractOperation, does not care about if implemantation is real or null. Java Standard Library Implementations: -            java....