2010年4月19日

单件模式笔记

摘要: 单件模式:私有构造函数+静态变量+静态方法 class Singleton { private static Singleton uniqueInstance; 静态实例 private Singleton() { } 私有构造函数 public static Singleton GetInstance() { if (uniqueInstance == null) { return new Si... 阅读全文
posted @ 2010-04-19 18:33 mint5919 阅读(124) 评论(0) 推荐(0)