Visitor Pattern - Related Design Patterns

Related Design Patterns

  • Command pattern: It encapsulates like the visitor pattern one or more functions in an object to present them to a caller. Unlike the visitor, the command pattern does not enclose a principle to traverse the object structure.
  • Iterator pattern: This pattern defines a traversal principle like the visitor pattern without making a type differentiation within the traversed objects.

Read more about this topic:  Visitor Pattern

Famous quotes containing the words related, design and/or patterns:

    “The content of a thought depends on its external relations; on the way that the thought is related to the world, not on the way that it is related to other thoughts.”
    —Jerry Alan Fodor (b. 1935)

    “I begin with a design for a hearse.
    For Christ’s sake not black—
    nor white either—and not polished!
    Let it be weathered—like a farm wagon—”
    —William Carlos Williams (1883–1963)

    “The ninety percent of human experience that does not fit into established narrative patterns falls into oblivion.”
    —Mason Cooley (b. 1927)