Visitor Design Pattern

Go back

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)).

Advantages βœ…

  • xxx

Disadvantages 🚫

  • ???

Notes πŸ“