0 votes
11 views

What is Null Object pattern?

in Education by (48.2k points)

1 Answer

0 votes

What is Null Object pattern?

In Null Object pattern, a null object replaces check of NULL object instance. Instead of putting if check for a null value, Null Object reflects a do nothing relationship. Such Null object can also be used to provide default behaviour in case data is not available.

In Null Object pattern, we create an abstract class specifying various operations to be done, concrete classes extending this class and a null object class providing do nothing implemention of this class and will be used seemlessly where we need to check null value.

by (48.2k points)

Related questions

0 votes
1 answer 12 views
0 votes
1 answer 12 views
0 votes
1 answer 12 views
0 votes
1 answer 12 views
0 votes
1 answer 10 views
0 votes
1 answer 20 views
0 votes
1 answer 11 views
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 12 views
12 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 10 views
0 votes
1 answer 10 views
10 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
0 votes
1 answer 17 views
17 views asked Nov 7, 2020 in Education by Editorial Staff (48.2k points)
...