GoF Statement of Intent:![]() |
Convert the interface of a class into another interface the clients
expect. Adapter lets classes work together that couldn't otherwise
because of incompatible interfaces. |
Brief Overview:![]() |
Allows classes to work together that normally could not do so.
The adapter accepts calls from one class and translates them into
appropriate calls to another class and then translates return values
from the called class to that expected by the calling class. |
UML Diagram: |
![]() |