摘要:定义 桥梁结构(Bridge Pattern)也称桥接模式,是一种简单但不常使用的设计模式。 英文原话是:Decouple an abstraction from its implementation so that the two can vary independently.意思是:将抽象和实现
阅读全文
摘要:定义 组合(Composite Pattern)模式也叫合成模式,用来描述部分与整体的关系。英文原话是:Compose objects into tree structures to represent part-whole hierarchies.Composite lets clients tr
阅读全文
摘要:定义 适配器模式(Adapter Pattern)又叫变压器模式。在适配器模式下,变压器的作用是把一种电压变换为另一种电压。 英文原话是:Convert the interface of a class into another interface clients expect.Adapter le
阅读全文