C# Design Patterns - The Visitor Pattern(geekdaily.net)
submitted by
justinbezanson(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.
|category: Patterns
|Views: 595
tags:
Patterns another
Everyones tags:
Your Tags: