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:

    Just as a new scientific discovery manifests something that was already latent in the order of nature, and at the same time is logically related to the total structure of the existing science, so the new poem manifests something that was already latent in the order of words.
    Northrop Frye (b. 1912)

    Humility is often only the putting on of a submissiveness by which men hope to bring other people to submit to them; it is a more calculated sort of pride, which debases itself with a design of being exalted; and though this vice transform itself into a thousand several shapes, yet the disguise is never more effectual nor more capable of deceiving the world than when concealed under a form of humility.
    François, Duc De La Rochefoucauld (1613–1680)

    I’ve begun to appreciate the generational patterns that ripple out from our lives like stones dropped in water, pulsing outward even after we are gone. Although we have but one childhood, we relive it first through our children’s and then our grandchildren’s eyes.
    Anne Cassidy (20th century)