摘要:场景:部队招人时的面试官以及工厂招人的面试官是visitor,被面试的男人和女人是被访问的Element,要点:1. 抽象的Person(又叫Element)里有个accept(visitor)函数,该函数里调用了visitor.visit(this)。2. 抽象的Visitor(抽象面试官)里分别...
阅读全文
posted @ 2015-04-22 22:00
多难的东西,总能用通俗易懂的语言表达清楚。
posted @ 2015-04-22 22:00
posted @ 2015-04-22 21:39
posted @ 2015-04-21 15:55
posted @ 2015-04-17 11:22
posted @ 2015-04-17 11:07
posted @ 2015-04-02 20:46