学习之旅

我离大师有多远?近些,再近些...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年10月24日

摘要: Intent Separate the construction of a complex object from its representation so that the same construction process can create different representations. 将一个复杂对象的创建和它的表示分离,使得同样的构造过程能够创建不同的表示。 Sampl... 阅读全文

posted @ 2007-10-24 11:26 BenyDu 阅读(116) 评论(0) 推荐(0)

摘要: Intent 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 @ 2007-10-24 10:15 BenyDu 阅读(153) 评论(0) 推荐(0)

摘要: Intent Provide an interface for creating families of related or dependent objects without specifying their concrete classes. 提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类。 Applicability 1.一个系统要独立于它的产品的创... 阅读全文

posted @ 2007-10-24 09:08 BenyDu 阅读(120) 评论(0) 推荐(0)