在设计模式中提到:“AbstractFactory类通常用FactoryMethod实现,但也可以用Prototype实现。”
代码请看这里:
http://code.google.com/p/tcplex/source/browse/trunk/Design_Pattern/af.cpp
http://code.google.com/p/tcplex/source/browse/trunk/Design_Pattern/af2.cpp
posts - 4, comments - 10, trackbacks - 0, articles - 0
Copyright © Hill