摘要: 1.定义了一个创建对象的接口,工厂方法创建一个框架,让子类决定如何实现 2.代码: C++ 1 //factory c++ 2 #include <iostream> 3 #include <string> 4 using namespace std; 5 6 //面团 7 class Dough{ 阅读全文
posted @ 2020-04-10 03:01 三岁玩童 阅读(160) 评论(0) 推荐(0) 编辑