A Gang of Four behavioral design pattern that separates an algorithm from the structure of the objects it operates on, letting a new operation be added across a set of classes by writing a new visitor rather than modifying every class.
Facts
Core PrincipleSeparates the algorithm from the object structure so new operations can be added without modifying the structures. 1 Connections
Associated With
Erich Gamma, Pioneers Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Visitor pattern among the original 23.
In Field
Sources
1. Visitor pattern, Wikipedia
IntroductionQuote, Introduction
A visitor pattern is a software design pattern that separates the algorithm from the object structure.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.