Adapter mode for design pattern learning

zhaozj2021-02-16  52

Convert a class interface to another interface class adapter you want: Object Adapter: Client calls some operations on the Adapter instance. Then the adapter calls AdapteE operation to implement this request

The structure of the mode B R i D g e (4) is similar to the object adapter, but the starting point of the B R i D g E mode is different: B R i D g E is an object to separate the interface portion and the implementation portion, so that they can be more easier to independently change. And A D A P T ER means changing an interface of an object.

转载请注明原文地址:https://www.9cbs.com/read-20217.html

New Post(0)