INTENT
- Convert the interface of a class into another interface client expect.
- Allow classes to work together that could not otherwise due to incompatible interfaces.
- Future-proof client implementations by having them depend on Adapter interfaces, rather than concrete classed directly.
APPLICABILITY
- You want to use an existing class, but its interface does not match the one you require.
- You want to create a reusable class that cooperates with unrelated or unforeseen.

2 comments:
love it!
:)
Post a Comment