摘要: 设计模式之单例模式 饿汉式(静态变量) class Singleton1{ //1.构造器私有化 private Singleton1() { } private static final Singleton1 singleton = new Singleton1(); public static 阅读全文
posted @ 2020-09-19 20:41 毕竟是曾经 阅读(143) 评论(0) 推荐(0) 编辑