in Design Patterns by (14.6k points)
What is null Object Pattern?

1 Answer

0 votes
by (23.9k points)
Null Object pattern is a design pattern in which null object replaces NULL check for instance variable. Instead of putting a check for a null value, Null Object reflects a do nothing relationship. It can also be used to provide default behavior in case data is not available.

Related questions

0 votes
0 votes
asked Jul 24 in Design Patterns by SakshiSharma (32.2k points)
0 votes
asked Jul 24 in Design Patterns by SakshiSharma (32.2k points)
0 votes
0 votes
asked Jul 23 in Design Patterns by Robindeniel (20.8k points)
...