Skip to content
rewind927 edited this page Jan 30, 2015 · 5 revisions

Intent:

An adapter helps two incompatible interfaces to work together ###Structure:

Object Adapter

use delegation

Class Adapter

use interface

Example:

Use Adapter Pattern:

Reference:

http://en.wikipedia.org/wiki/Adapter_pattern http://www.journaldev.com/1487/adapter-design-pattern-in-java-example-tutorial

Clone this wiki locally