Het Adapter-patroon stelt objecten met incompatibele interfaces in staat om samen te werken door er één in te pakken met een interface die de ander verwacht. Het fungeert als vertaler tussen twee interfaces, waardoor integratie mogelijk is zonder bestaande code aan te passen.
Wat het Adapter-patroon doet
ADAPTER → convert one interface into another that a client expects (a "translator"):
→ wrap an object whose interface is INCOMPATIBLE, exposing the interface the client needs
→ the adapter translates calls/data between the two interfaces
→ makes incompatible things work together WITHOUT changing either's code
