会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JustYong
博客园
首页
新随笔
联系
订阅
管理
2015年6月23日
1.单例模式
摘要: 1.定义Ensure a class has only one instance,and provide a global point of access to it.(确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。)2.模式讲解(1)类图(2)单例模式通用代码 1 public...
阅读全文
posted @ 2015-06-23 23:08 JustYong
阅读(250)
评论(0)
推荐(0)