摘要: 1.简单工厂模式(Simple Factory Pattern) 一个工厂生产所有的产品,根据输入参数决定产品的种类。 #include "Factory.h" #include "ProductA.h" #include "ProductB.h" Product* Factory::createP 阅读全文
posted @ 2020-03-29 22:32 今天的小马同学 阅读(499) 评论(0) 推荐(0)