Visitor Design Pattern
Aliases π: None
Description π: A class can accept some visitors (ex: has a accept(SomeVisitor)
method). Our method will behave differently according to the kind of visitor.
We usually call the visit
method on the visitor (ex: someVisitor.visit(this)
).