0 votes
in Design Patterns by
What do you understand by the Null Object pattern?

1 Answer

0 votes
by

In this pattern, a null object is used for replacing the check of validating if the object instance is null or not. This Null Object has a “do nothing” relationship and these can be used for providing default behaviour if the data is unavailable.

...