摘要: 抽象工厂模式定义:Provide an interface for creating families of related or dependent objects without specifying their concrete classes. (为创建一组相关或互相依赖的对象提供一个接口, 阅读全文
posted @ 2018-01-03 17:53 随心-HL 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 工厂方法模式 工厂方法模式定义:Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory Method lets a class defer inst 阅读全文
posted @ 2018-01-03 16:38 随心-HL 阅读(195) 评论(0) 推荐(0) 编辑