适配器模式

一:适配器模式的定义   适配器模式:将一个类的接口转换成客户希望的另一个接口。适配器模式让那些接口不兼容的类可以一起工作   Adapter Pattern:Convert the interface of a class into another interface clients expect.Adapter lets classes work together that couldn't
相关文章
相关标签/搜索