# Visitor Pattern

A pattern that adds new operations to classes by moving them into visitor classes.

## What is **Visitor Pattern**?

The **Visitor pattern** lets you add new operations to a set of classes without editing them, by putting each operation in a separate "visitor" class that visits every object.

Level: Master · [More OOP terms at this level](https://www.ask-codey.com/glossary/subjects/oop/master)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/visitor-pattern
