This is a space that holds a collection of my personal work and ideas
Behavioral Patterns - Visitor Pattern Exercise
Posted on 07/17/2018
The Visitor Pattern represents an operation to be performed on elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates. In this exercise, we will create a bookstore inventory structure that collects books, movies, and music. We will add shared behaviors across this hierarchical structure by using the Visitor Pattern.