Can we Say facade and Adapter are more or less in design patterns ?
Wikipedia explains this as :-
Adapter Converts one interface to another so that it matches what the client is
expecting while Facade Provides a simplified interface.
Looking at the UML representation in wiki http://en.wikipedia.org/wiki/Facade_pattern and adapter pattern http://en.wikipedia.org/wiki/Adapter_pattern I am not able to distinguish much between them . Can someone explain me the major point of difference in two ?
The
Adapterdesign pattern “converts” a class interface into another that the client expect/can use. I.e. it facilitates the “cooperation” with incompatible interfaces.I.e. adapts the existing interface of a class into one that the client can use.
The
Facadedesign pattern offers a uniform interface for a set of interfaces of a system. It makes easier for the calling code to manipulate the system over a facade (The word facade comes from the French language, literally meaning “frontage” or “face”;A facade or façade is generally one exterior side of a building, usually, but not always, the front. An outward appearance that is maintained to conceal a less pleasant or creditable reality).