Visitor Design Pattern explained with simple example
The visitor design pattern allows a programmer to separate algorithms of the module from the object or class. This will allow to modify algorithm by adding or removing new functionalities without altering objects structure. This design pattern basically allows us to add a functionality to every element without altering their structure.
Before going ahead have a look at Design pattern simplified version.
(more…)