2012年8月22日
摘要: 生成器模式:将一个复杂对象的构建与它的表示分离,使同样的构建过程可以创建不同的表示(Separate the construction of a complex object from its representation so that the same construction process cancreate different representations)。生成器模式结构中的四种角色。产品(Product): 所要构建的复杂对象。抽象生成器(Builder): 抽象生成器是一个接口,该接口除了为创建一个Product对象的各个组件定义若干个方法外,还要定义返回Product对象的 阅读全文
posted @ 2012-08-22 14:30 幸福从不迟疑 阅读(2072) 评论(1) 推荐(0) 编辑