© James E. McDonough 2017

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

24. Flyweight Design Pattern

James E. McDonough

(1)Pennington, New Jersey, USA

The next stop on our voyage through the Design Patterns galaxy takes us to the Flyweight design pattern , another of the design patterns found in the GoF catalog. We will find this design pattern useful in optimizing components.

Imagine you live in Procedureton and work in Objectropolis, with about 20 kilometers distance separating the two towns. Now imagine your commute between work and home is facilitated by a roadway with a lane dedicated exclusively to your use; no other commuters can use your lane. This would be a boon to those of us who have ever dealt ...

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.