Difference between double dispatch and visitor pattern in Java and C++ -


Is there any difference between double sending and visitor patterns?

I am working with Java and C ++ and wondering if there is a division between the two.

Visitor pattern is one of the means of adding a new operation to the existing classes, instead of a single paradigm shift Two (or, when normalized, more) is a means of sending a function call in terms of polynomial type, which is directly in languages ​​such as C ++ and Java support.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -