Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

01 Design Patterns

❯

01 Concept

❯

Visitor

Visitor

Feb 10, 20261 min read

  • design-patterns
  • behavioral
  • visitor

Visitor

← Back to Behavioral Patterns

Add operations to object structures without modifying them. Represent 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.

Key Properties

  • Double Dispatch
  • Element and Visitor
  • Open for Operations

Related

  • Composite (visitor operates on composite structures)
  • Iterator (traversal mechanism)

design-patterns behavioral visitor


Graph View

  • Visitor
  • Key Properties
  • Related

Backlinks

  • Behavioral Patterns
  • Composite
  • Iterator
  • Double Dispatch

Created with Quartz v4.5.2 © 2026

  • GitHub