随笔分类 -  设计模式

摘要:单例模式 重要思想:构造器私有,保证内存中只有一个对象 饿汉式 public class Hungry { private Hungry(){ } private final static Hungry HUNGRY = new Hungry(); public static Hungry getI 阅读全文
posted @ 2020-06-05 20:31 我不爱吃鱼 阅读(101) 评论(0) 推荐(0)

Live2D