摘要: “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.”(在基类中定义创建对象的一个接口,让子类决定实例化哪个类。工厂方法让一个类的实例化延迟到子类中进行。) 阅读全文
posted @ 2018-05-27 20:50 SnailClimb 阅读(263) 评论(0) 推荐(0) 编辑