Understanding Visitor Pattern
- by Nezreli
I have a hierarchy of classes that represents GUI controls. Something like this:
Control-ContainerControl-Form
I have to implement a series of algoritms that work with objects doing various stuff and I'm thinking that Visitor pattern would be the cleanest solution. Let take for example an algorithm which creates a Xml representaion of a hierarchy…