摘要:
The Prototype design pattern specifies the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. 阅读全文
摘要:
The Factory Method design pattern defines an interface for creating an object , but let subclasses decide which class to instantiate. This pattern let 阅读全文
摘要:
代理模式(proxy):为其他对象提供一种代理以控制对这个对象的访问。在某些情况下,一个对象不适合或者不能直接引用另外一个对象,而代理对象可以在客户端和目标对象之间起到中介的作用。 The Proxy design pattern provides a surrogate or placeholde 阅读全文