Adapter class (wrapper)

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset