SE450: The ADAPTER Pattern [5/55] Previous pageContentsNext page

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 pageContentsNext page