定义 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request...
定义 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request...
定义 命令模式是一个高内聚的模式,其定义为:Encapsulate a request as an object,thereby letting you parameterize clients with different reques...
定义 中介者模式的定义为:Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keepi...
定义 Specify the kinds of objects to create using a prototypical instance,and create new objects by copying this prototyp...
定义 Provide a surrogate or placeholder for another object to control access to it.(为其他对象提供一种代理以控制对这个对象的访问。) UML 代码实现 ...
定义 Separate the construction of a complex object from its representation so that the same construction process can crea...
定义 Define the skeleton of an algorithm in an operation,deferring some steps to subclasses.Template Method lets subclass...
定义 Provide an interface for creating families of related or dependent objects without specifying their concrete classes...
定义 Define an interface for creating an object,but let subclasses decide which class to instantiate.Factory Method lets ...
Ensure a class has only one instance, and provide a global point of access to it.(确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。) 类...