Changes

Jump to: navigation, search

Visitor

42 bytes added, 21:58, 8 April 2007
no edit summary
Each node in the data structure "accepts" a Visitor, which sends a message to the Visitor which includes the node's class. The visitor will then execute its algorithm for that element. This process is known as "Double Dispatching." The node makes a call to the Visitor, passing itself in, and the Visitor executes its algorithm on the node. In Double Dispatching, the call made depends upon the type of the Visitor and of the Host (data structure node), not just of one component.
 
== UML Diagram ==
 
[[Image:Example.jpg]]
1
edit

Navigation menu