Multiple choice technology architecture

A Visitor Design pattern is

  1. Intercepting Filter

  2. Factory pattern

  3. Invoker pattern

  4. Double Dispatch pattern

  5. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Visitor pattern is a behavioral design pattern that allows you to add new operations to existing object structures without modifying the structures. It uses a technique called double dispatch, where the operation executed depends on both the type of visitor and the type of element being visited. The other options (Intercepting Filter, Factory, Invoker) are different design patterns altogether.