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.

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.


Buy Me A Coffee

Found this article helpful? Please consider supporting!

Ram
Ram

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity. You can connect with me on Medium, Twitter or LinkedIn.

Leave a Reply

Your email address will not be published. Required fields are marked *