Adapter


The Adapter pattern is a Design Pattern that allows incompatible interfaces to work together.

It has an interface that is compatible with that of one of the existing objects, and will rewrite the object's methods by calling those of the other object.

Ideally, the Adapter should inherit from both classes it wishes to adapt, but this is not possible in some languages.

Applications

META

Status:: #wiki/notes/mature
Plantations:: Structural Patterns - 20230221104007
References:: Dive Into Design Patterns, Head First Design Patterns, Design Patterns