会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Runtime
博客园
首页
联系
管理
2024年11月2日
原型模式的C++实现
摘要: 原型模式的C++实现 原型模式: 根据已有原型构造新对象 实现思路: 利用拷贝构造函数克隆自身 #include <iostream> using namespace std; class Prototype { public: Prototype() = default; Prototype(co
阅读全文
posted @ 2024-11-02 00:39 RunTimeErrors
阅读(4)
评论(0)
推荐(0)
编辑