会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
_Toya
CnBlogs
Home
New Post
Contact
Admin
Subscription
2020年11月26日
设计模式(1):简单工厂模式
根据传入的参数的不同,自动生成需要的类的对象 简单工厂模式只是解决对象的创建问题 Operation.h: 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 using namespace std; 7 8 class Oper
Read More
posted @ 2020-11-26 21:03 _KikyoBK
Views(93)
Comments(0)
Diggs(0)
公告