views:

154

answers:

1

Title says it all. If it helps, the languages in question are java and c++.

+2  A: 

The visitor pattern is a means of adding a new operation to existing classes. Double dispatch is a means of dispatching function calls with respect to two (or, when generalised, more) polymorphic types, rather than a single polymorphic type, which is what languages like C++ and Java support directly.

anon
I'll have to study this more carefully - it appears that I'm mistaken. Thanks for the instruction, Neil.
duffymo