VISITOR 3 / 6 1 / 6
VISITOR DESIGN PATTERN: SCENARIO Used when an operation needs to be performed on the elements of an object structure. Lets you de�ne a new operation without changing the classes of the elements on which it operates. 3 / 6 2 / 6
VISITOR EXAMPLE More here: https://sourcemaking.com/design_patterns/visitor 3 / 6 3 / 6
VISITOR UML 3 / 6 4 / 6
ANOTHER VISITOR EXAMPLE The scenario 1 / 6 5 / 6
The visitor pattern solution *these slides by Larry 2 / 6 6 / 6
Recommend
More recommend