Object-oriented Adapter
Assume that a software system already exists and you want it to work with a new vendor class library, but the interfaces designed by the new vendor are different from those of the old vendor.
You don't want to change the existing code to solve this problem. You can write a class to convert the vendor interface into the interface you expect.
The process of using the adapter is as follows:
1. The customer sends a request to the adapter by calling the method of the adapter through the target interface.
2. the adapter uses the adapter interface to convert requests to one or more called interfaces of the adapter.
3. The customer receives the call result, but does not notice that all of this is the conversion function of the adapter.
Design Mode (7) the adapter and Facade Pattern adapter mode and appearance Mode