Adapter pattern ngidini obyek-obyek kanthi interface-interface sing ora cocok bisa makarya bebarengan kanthi ngrumangsuli salah siji kanthi interface sing dikarepake sing liyane. Iku minangka penerjemah antarane rong interface, ngidini integrasi tanpa ngowahi kode sing wis ana.
Apa sing ditindakake Adapter pattern
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
