适配器模式读书笔记(设计模式之禅)
适配器模式读书笔记(设计模式之禅)
1、定义
适配器模式(Adapter Pattern)的定义如下:Convert the interface of a class into another interface clients expect. Adapterlets classes work together that couldn’t otherwise because of incompatible interfaces.(将一个类的接口变换成客户端所期待的另一种接口,从而使原本因接口不匹配而无法在一




