摘要: /** * 单例模式-饿汉式 */ public class Singleton { // 在定义的时候就初始化_instance, private static Singleton _instance = new Singleton(); // 够造函数必须是私有的,不能被外部直接调用。 priv 阅读全文
posted @ 2020-06-16 16:22 流星泪 阅读(633) 评论(0) 推荐(0)