previous | start | next

The ADAPTER Pattern

Solution

  1. Define an adapter class that implements the target interface.
  2. The adapter class holds a reference to the adaptee. It translates target methods to adaptee methods.
  3. The client wraps the adaptee into an adapter class object.

previous | start | next