behavior
-
VisitorModeling/DesignPattern 2020. 2. 29. 19:02
1. Overview Visitor pattern allows us to define new operations that can be performed on an object without changing the class definition of the object Think of this pattern as an object visitor that visits all nodes in an object structure. Each time our visitor visits a particular object from the object structure, that object calls a specific method on a visitor, passing itself as an argument. Ea..