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:
“A parent who from his own childhood experience is convinced of the value of fairy tales will have no difficulty in answering his childs questions; but an adult who thinks these tales are only a bunch of lies had better not try telling them; he wont be able to related them in a way which would enrich the childs life.”
—Bruno Bettelheim (20th century)
“We find that Good and Evil happen alike to all Men on this Side of the Grave; and as the principle Design of Tragedy is to raise Commiseration and Terror in the Minds of the Audience, we shall defeat this great End, if we always make Virtue and Innocence happy and successful.”
—Joseph Addison (16721719)
“Persons grouped around a fire or candle for warmth or light are less able to pursue independent thoughts, or even tasks, than people supplied with electric light. In the same way, the social and educational patterns latent in automation are those of self- employment and artistic autonomy.”
—Marshall McLuhan (19111980)