Kiwango cha Adapter kinazingatia kwamba vitu vilivyo na interface zisizofanana vinaweza kufanya kazi pamoja kwa kuzinga moja kwa interface ambayo nyingine inatarajia. Inafanya kazi kama mtafsiri kati ya interface mbili, na kuwezesha ujumuishaji bila kurekebisha msimbo unaofanana.
Kiwango cha Adapter kinafanya nini
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
