SE450: The VISITOR Pattern [50/55] Previous pageContentsNext page

Context

  1. An object structure contains element classes of multiple types, and you want to carry out operations that depend on the object types.
  2. The set of operations should be extensible over time.
  3. The set of element classes is fixed.

Previous pageContentsNext page