DCSIMG
Design - Gady Elkarif's Blog

Gady Elkarif's Blog

Browse by Tags

All Tags » Design (RSS)
Acyclic Visitor Design Pattern
Acyclic Visitor Design Pattern The Visitor Design Pattern allow new functions to be added to existing class hierarchies without affecting those hierarchies. The Acyclic Visitor Design Pattern is saved you from implementing some unrequired methods using downcasting. The following code sample display 3 elements: Element1 , Element2 and Element3 , and two concrete visitors: Visitor12 and Visitor3 . The Acyclic Visitor Design Pattern is preventing you from implement method Visit(Element3) in Visitor12...
Posted: Aug 19 2008, 03:29 AM by egady | with 1 comment(s)
תגים:,