Modelul Adapter permite obiectelor cu interfețe incompatibile să funcționeze împreună prin încapsularea uneia cu o interfață pe care o așteaptă cealaltă. Acționează ca un translator între două interfețe, permițând integrarea fără a modifica codul existent.
Ce face modelul Adapter
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
