摘要:
三、 组合继承 (原型链和借用构造函数的技术组合到一起) 四、寄生组合式继承(集寄生式继承和组合继承的优点于一身,是实现基于类型继承的最有效方式) 阅读全文
摘要:
1.单例class Singleton{ private Singleton(){} private static Singleton singleton = null; public static Singleton getSingleton(){ if(singleton == null){ s 阅读全文