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 ...