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:

    Becoming responsible adults is no longer a matter of whether children hang up their pajamas or put dirty towels in the hamper, but whether they care about themselves and others—and whether they see everyday chores as related to how we treat this planet.
    Eda Le Shan (20th century)

    To nourish children and raise them against odds is in any time, any place, more valuable than to fix bolts in cars or design nuclear weapons.
    Marilyn French (20th century)

    For the man who should loose me is dead,
    Fighting with the Duke in Flanders,
    In a pattern called a war.
    Christ! What are patterns for?
    Amy Lowell (1874–1925)