© James E. McDonough 2017

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

23. Lazy Initialization Technique

James E. McDonough

(1)Pennington, New Jersey, USA

The next stop on our voyage through the Design Patterns galaxy takes us to the Lazy Initialization technique, the second of two design patterns we’ll encounter that is not registered in the GoF catalog. We will find this design pattern useful in optimizing components.

Initializing components used during the execution of programs is a common housekeeping task applicable to both procedural and object-oriented programming. We may find that initializing these components at the beginning of execution incurs performance and storage consumption penalties when later ...

Get Object-Oriented Design with ABAP: A Practical Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.