GOF23种设计模式类型、描述和类图(下)

适配器模式 类型:结构 描述: 将一个类的接口变换成客户端锁期待的另一种接口,从而是原本因接口欧不匹配而无法再一起工作的两个类能够在一起工作 。 英文描述: Convert the interface of a class into another interface clients expect.Adapter lets classes work together that couldn't o
相关文章
相关标签/搜索