C# Design Patterns - The Visitor Pattern(geekdaily.net)

submitted by justinbezansonjustinbezanson(1555) 3 years, 1 month ago

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.

add a comment |category: |Views: 595

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story