1 Star 0 Fork 49

IceZhang88/DesignPattern

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 262 Bytes
一键复制 编辑 原始数据 按行查看 历史
涛哥威威 提交于 2018-10-09 08:52 +08:00 . classify
#include "IDCardFactory.h"
int main()
{
IFactory *fac = new IDCareFactory;
IProduct *pro = fac->create("tao");
IProduct *pro2 = fac->create("tao2");
pro->use();
pro2->use();
delete pro;
delete fac;
delete pro2;
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/IceZhang/DesignPattern.git
git@gitee.com:IceZhang/DesignPattern.git
IceZhang
DesignPattern
DesignPattern
master

搜索帮助