Adapter is used in cases when we need to use two incompatible interfaces. The adapter provides the client what interface it needs while the adapter internally calls the other interface.
Why do we need Adapter when we can use an Interface?
Adapter is used in cases when we need to use two incompatible interfaces. The adapter provides the client what interface it needs while the adapter internally calls the other interface.