06 2018 档案

摘要:一、建造者模式 建造者模式,也叫生成器模式,定义为:Separate the construction of a complex object from its representation so that the same construction process can create diffe 阅读全文
posted @ 2018-06-14 09:15 ony-z 阅读(112) 评论(0) 推荐(0)
摘要:一、模板方法模式 模板方法模式。定义为:Define the skeleton of an algorithm in an operation,deferring some steps to subclasses.Template Method lets subclasses redefine ce 阅读全文
posted @ 2018-06-10 23:11 ony-z 阅读(168) 评论(0) 推荐(0)
摘要:一、工厂方法模式 工厂方法模式。定义为:Define an interface for creating an object,but let subclasses decide which class toinstantiate.Factory Method lets a class defer i 阅读全文
posted @ 2018-06-10 21:35 ony-z 阅读(217) 评论(0) 推荐(0)