设计模式-适配器模式 | Changjie's blog
changchangjie opened this issue · comments
chang jie commented
适配器模式跟代理模式写法上类似。适配器模式做的就是,有一个接口需要实现,但是我们现成的对象都不满足,需要加一层适配器来进行适配。分为对象适配器模式、类适配器模式
changchangjie opened this issue · comments
适配器模式跟代理模式写法上类似。适配器模式做的就是,有一个接口需要实现,但是我们现成的对象都不满足,需要加一层适配器来进行适配。分为对象适配器模式、类适配器模式