Abstract Factory 当一个对象状态发生变化时,所以依赖于它的对象都将得到通知并自动刷新
解决方案(solution)
解Int决erp方re案te(r solutio提n) 供一个创建一系列相关或相互依赖对象的接口, 而无需指定它们具体的类 增加一个新的子类(被访问对象),则需要更新所有Visitor类接口
The pattern is , in short , at the same time a thing , which happens in the world , and the rule which tells us how to create that thing , a process and a thing , both a description of a thing which is alive , and a description of the process which will generate that thing .
功能增加的时候破坏了原有类的定义
可以对Delete操作进行撤销;
Builder 能对大多数功能支持Undo和Redo操作
Compositor(支持不同格式化算法的代码)
2it3e种rat设or计_b模设式为(Fir结s将t 构)一个复杂对象的创建与它的表示分离,使得同样 的创建过程可以创建不同的表示 一个支持窗口的逻辑概念,另一个描述了窗口的不同实现
使一个类的实例化延迟到其子类
23种设计模式(创建)
Prototype
用原型实例指定创建对象的种类,并通过拷贝这个 原型来创建新的对象
Singleton
保证一个类仅有一个实例,并提供一个访问它的全 局访问点
23种设计模式(结构)