摘要:
抽象工厂模式定义:Provide an interface for creating families of related or dependent objects without specifying their concrete classes. (为创建一组相关或互相依赖的对象提供一个接口, 阅读全文
摘要:
工厂方法模式 工厂方法模式定义:Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory Method lets a class defer inst 阅读全文
摘要:
单例模式 单例模式定义:Ensure a class has only one instance , and provide a global point of access to it.(确保一个类只有一个实例,而且自行实例化并且向整个系统提供这个实例。) 单例模式在我们开发中也是常遇到的,一般使 阅读全文