工廠方法C++示例

工廠方法UML圖 //AbstractFactory.h #ifndef ABSTRACTFACTORY_H #define ABSTRACTFACTORY_H class AbstractProduct; class AbstractFactory { public: virtual AbstractProduct* createProduct()=0; }; #endif /
相關文章
相關標籤/搜索