- Intent
- Enables objects with imcopatible interfaces to interact with each other
- Adapter acts a broker between calls of objects with different interfaces
- Components
- Target ⇒ the interface to be adapted to
- Adaptee (only one) ⇒ the differed interfaces that adapt to target
- Adapter ⇒ the middleman between target and ada’tees
- Client ⇒ uses the target
- Flow
- Use case
- Working with legacy code
- Using third-party libraries you want to modify
- Code