Convert one interface of a class into another interface that the client wanted. In other words, the adapter makes heterogeneous classes work together:
The preceding class diagram depicts an adapter called OnlineLinkedAccounts that adopts a savings account's details and a target interface called credit card details, and combine the results to show both account numbers.