Le pattern Adapter permet aux objets ayant des interfaces incompatibles de fonctionner ensemble en enveloppant l'un d'eux avec l'interface que l'autre attend. Il agit comme un traducteur entre deux interfaces, permettant l'intégration sans modifier le code existant.
Ce que fait le pattern 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
