2017年8月23日

单例设计模式

摘要: package test; //单利模式 public class demo1 { public static void main(String[] args) { /*Singleton s1 = Singleton.s; //成员变量被私有 Singleton s2 = Singleton.s; System.out... 阅读全文

posted @ 2017-08-23 08:08 虫儿aqa 阅读(92) 评论(0) 推荐(0) 编辑

导航