Visitor访问者模式
Tiger下的Visitor
1
768
public interface Visitable{ void accept(Visitor<Visitable> visitor);}public interface Visitor<A>{ .
求救!不理解visitor模式```````
3
966
1
gof的书上说这个模式使得增加新的操作变得容易,这个新的操作指添加在哪个对象中的操作?是指增加在Visitor中的操作吗?还有gof说增加新的ConcreteElement变得困难,因此增加Concr.
我的一个visitor实作
14
2413
1
public interface Visitable{ void accept(Visitor visitor);}public interface Visitor{ void visit.
看visitor模式的感受
14
1887
1
就是提倡用多态,而不是RTTI。.
I'm a visitor, i would visit the ones i knew.
1
955
5K
I'm learning Design Pattern, Here is what i think about the visitor Pattern. if something wrong, ple.