摘要:
定义 适配器模式(Adapter Pattern)又叫变压器模式。在适配器模式下,变压器的作用是把一种电压变换为另一种电压。 英文原话是:Convert the interface of a class into another interface clients expect.Adapter le 阅读全文
摘要:
定义 装饰模式的英文原话是:Attach additional responsibilities to an object dynamically keeping the same interface.Decorators provide a flexible alternative to subc 阅读全文