What is the purpose of the Adapter pattern?
- To allow for loose coupling between the sender of a request and its receivers.
- To convert the interface of a class into another interface clients expect.
- To create objects based on a blueprint.
- To provide a unified interface to a set of interfaces in a subsystem.
The Adapter pattern is used to convert the interface of a class into another interface clients expect, allowing classes to work together that couldn't otherwise because of incompatible interfaces.
Loading...