7
shouts

Geek Daily » C# Design Patterns - The Visitor Pattern

published 334 days, 11 hours, 29 minutes ago posted by justinbezansonjustinbezanson 334 days, 22 hours, 31 minutes ago
Monday, April 13, 2009 8:18:24 PM GMT Monday, April 13, 2009 9:16:34 AM GMT

One principle that I really like is the Open/Closed principle which says that an object should be open to new functionality but closed to structural changes. The visitor pattern helps facilitate this principle by giving us the means to perform operations against an object without changing the objects structure.

Looking back at a previous pattern we wanted to adjust the registration cost for a dog if they had been picked up by the dog catcher.

category: Architecture | clicked: 22 | | source: www.geekdaily.net | show counter code

No comments yet, be the first one to post comment.

To post your comment please login or signup