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

Updated