© James E. McDonough 2017

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

11. Singleton Design Pattern

James E. McDonough

(1)Pennington, New Jersey, USA

The first stop on our voyage through the Design Patterns galaxy takes us to the Singleton design pattern, one of the design patterns found in the GoF catalog. We will find this design pattern useful when we need to guarantee that there is only a single instance of a class available during execution.

We may have multiple instances of a class, with each instance having its own unique attribute values. However, there are some classes that are intended to have one and only one instance per program execution. Some examples are the following devices through which ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.