摘要:
核心: 构造函数私有化 实现方式 1.饿汉式单例 public class Hungry{ private static final Hungry hungry=new Hungry(); private hungry(){}; public Hungry getHungry(){ return h 阅读全文
posted @ 2021-12-10 15:12
communist
阅读(35)
评论(0)
推荐(0)
浙公网安备 33010602011771号