Adapter Pattern

Problem

How to resolve incompatible interfaces, or provide a stable interface to similar components with different interfaces?

Solution

Convert the original interface of a component into another interface, through an intermediate adapter object.

Please refer to images at this Stack Overflow page.

Last updated