[img]http://dl.iteye.com/upload/attachment/243984/96034d37-6559-3b0a-b014-777483cd9381.png[/img]
Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
本文介绍了一种设计模式——适配器模式,该模式的主要作用是将一个类的接口转换成客户期望的另一个接口,从而使原本因接口不兼容而无法合作的类能够一起工作。
2824

被折叠的 条评论
为什么被折叠?



