Adapter Design Pattern

Learn about the adapter design pattern.


We often use adapters in real life. Suppose we traveled from the US to the UK with a laptop. Our charger won’t plug directly into the power outlet in the UK because they’re incompatible. We can solve this problem by placing an adapter between the plug and the power socket.

Get hands-on with 1200+ tech skills courses.