Pattern ADAPTER (cont.)


Solution

  1. Define an adapter class that implements the target i/f
  2. Adapter class translates target functions to adaptee functions
  3. The client wraps the adaptee into an adapter class object

prev |top |next