© James E. McDonough 2017

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

26. Visitor 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 Visitor design pattern, another of the design patterns found in the GoF catalog. We will find this design pattern most useful once the maintenance cycle has begun on software components.

Before exploring how the Visitor Design Pattern can make our programming lives easier, let’s first consider an example of the problem it solves.

Implementation of a New City-Wide Safety Policy

The Public Works Department of the city of Galveston, New York recently implemented a sweeping new safety policy ...

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

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