Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Adapter

Official description of the Adapter pattern

Convert the interface of a class into another interface the client expects.
Adapter lets classes work together that could otherwise not because of incompatible interfaces.


The role of this pattern is to convert one interface to another.
This means the interface of the adeptee to the interface of the client.
A real life example for this is a power outlet. A software example for this could be an Iterator vs an Enumator.