O'Reilly logo

Object-Oriented Design with ABAP: A Practical Approach by James E. McDonough

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© James E. McDonough 2017

James E. McDonough, Object-Oriented Design with ABAP, 10.1007/978-1-4842-2838-8_21

21. Null Object Pattern

James E. McDonough

(1)Pennington, New Jersey, USA

The next stop on our voyage through the Design Patterns galaxy takes us to the Null Object design pattern , the first of two design patterns we’ll encounter that are not registered in the GoF catalog. We will find this design pattern useful in reducing conditional logic .

While using a program, a user may be able to issue commands for actions prior to having selected the type of object upon which those actions are applicable. Without having selected an object, the reference to the object is not yet bound to an actual object. We might find ourselves implementing conditional ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required