© James E. McDonough 2017

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

13. Observer 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 Observer design pattern, another of the design patterns found in the GoF catalog. We will find this design pattern useful in situations where one class needs to be kept aware of changes occurring in another class.

The Observer design pattern often is described as a publish and subscribe arrangement between entities. A good example of this is the process of getting a daily newspaper delivered to you. You, as the customer, subscribe to the newspaper. The newspaper publishes a new edition ...

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.