Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Visitor Pattern

Technique

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 Principle
Separates 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
Introduction
Quote, Introduction
A visitor pattern is a software design pattern that separates the algorithm from the object structure.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.