double dispatch in Visitor design pattern
Tow dispatchs take place at the following places:1. Invoke of Element.accept : overide of accept2. Inplemention of Element.accept : overload of visit.the core concept of double dispatch is the accept Method.The first dispatch takes place at run time, which
原创
2010-09-18 23:04:00 ·
454 阅读 ·
0 评论