会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
缘随风烬
博客园
首页
新随笔
联系
订阅
管理
2022年3月24日
C++ 工厂模式简单实现
摘要: //缺点:工厂类集中了所有产品类的创建逻辑,如果产品量较大,会使得工厂类变的非常臃肿。#include <iostream> #include <string> using namespace std; class Cost{ public: virtual const string& color(
阅读全文
posted @ 2022-03-24 12:00 缘随风烬
阅读(104)
评论(0)
推荐(0)