Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Null object pattern

Null object pattern

  • Be the first to comment

  • Be the first to like this

Null object pattern

  1. 1. Check if it’s Null all the time
  2. 2. http://www.erlang.se/doc/programming_rules.shtml#HDR11
  3. 3. Employee null getEmployeeByDB() Employee NullableEmployee getEmployeeByDB() Null Object Pattern ANullableEmployee
  4. 4. Abstract Class private NullClass inherit static readonly NullClass •Return the NullClass as usual
  5. 5. Null Object Pattern change the culture which check if it’s valid all the time. If this object should be fail, it do nothing or return the failure status.

×