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:

    No being exists or can exist which is not related to space in some way. God is everywhere, created minds are somewhere, and body is in the space that it occupies; and whatever is neither everywhere nor anywhere does not exist. And hence it follows that space is an effect arising from the first existence of being, because when any being is postulated, space is postulated.
    Isaac Newton (1642–1727)

    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)

    Teasing is universal. Anthropologists have found the same fundamental patterns of teasing among New Zealand aborigine children and inner-city kids on the playgrounds of Philadelphia.
    Lawrence Kutner (20th century)