The Visitor Pattern – Part 1

The Visitor Pattern introduces a basic double dispatch mechanism to find the proper method inside the visitor that handles a specific class. Here is a small example implemented according to the GoF in terms of Delphi.

Author: Uwe Raabe

Addicted to Pascal/Delphi since the late 70's

One thought on “The Visitor Pattern – Part 1”

  1. Thanks for an excellent article on the visitor pattern. I have heard a lot of talk regarding patterns, but all very abstract in its descriptions. This one really makes it easy to understand.

    Jan

Comments are closed.

The Art of Delphi Programming
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.