Adapter and Facade

September 2, 2014
Author:Eric
Source:http://blog.wjin.org/posts/adapter-and-facade.html
Declaration: this work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Creative Commons License

Adapter and Facade

Adapter

The adapter pattern converts the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces.

There are two kinds of adapter pattern:

Facade

The façade pattern provides a unified interface to a set of interfaces in a subsystem. Façade defines a higher level interface that makes the subsystem easier to use.

Difference