【发布时间】:2012-08-30 10:08:40
【问题描述】:
Can we Say facade and Adapter are more or less in design patterns ?
维基百科将其解释为:-
Adapter Converts one interface to another so that it matches what the client is
expecting while Facade Provides a simplified interface.
查看 wiki http://en.wikipedia.org/wiki/Facade_pattern 和适配器模式 http://en.wikipedia.org/wiki/Adapter_pattern 中的 UML 表示,我无法区分它们。有人可以解释一下两者的主要区别吗?
【问题讨论】:
-
区别主要在于意图。
标签: design-patterns