装饰着模式,适配器模式,外观模式的区别

装饰者模式

不改变接口,但加入责任

适配器模式

将一个接口转成另一个接口

外观模式

让接口更简单

猜你喜欢

转载自blog.csdn.net/k3108001263/article/details/84147156