会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
LinkinStar
No one but myself can do it, Don't worry be happy!
本站markdown支持不佳,如果最新的博客格式影响观看,请移步
https://www.jianshu.com/u/dcc4b2396fc4
http://www.linkinstars.com
博客园
首页
新随笔
联系
订阅
管理
2017年10月12日
大战设计模式【4】—— 简单工厂模式
摘要: 简单工厂模式(Simple Factory) 设计模式使用的例子 https://github.com/LinkinStars/DesignPatternsAllExample 一、定义 定义一个工厂类,它可以根据参数的不同返回不同类的实例,被创建的实例通常都具有共同的父类。因为在简单工厂模式中用于
阅读全文
posted @ 2017-10-12 20:16 LinkinStar
阅读(538)
评论(0)
推荐(0)
编辑
公告