免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Adapter
“
- [Instructor] The adapter pattern converts the interface of a class into another one a client is expecting. This time, our problem is that the interfaces are incompatible between a client and a server. In our scenario, we have Korean and British objects that have different method names for speaking. The client would like to use a uniform interface that is the speak method. Our solution is use the adapter pattern that translates the method names between the client and the server code. Bridges and decorators are related to the adapter pattern.
内容
-
-
-
-
-
(已锁定)
Decorator1 分钟 5 秒
-
(已锁定)
Decorator example4 分钟 43 秒
-
(已锁定)
Solution: Decorator1 分钟 55 秒
-
Proxy1 分钟 22 秒
-
(已锁定)
Proxy example5 分钟 23 秒
-
(已锁定)
Adapter48 秒
-
(已锁定)
Adapter example6 分钟 16 秒
-
(已锁定)
Composite1 分钟 21 秒
-
(已锁定)
Composite example5 分钟 25 秒
-
Solution: Composite1 分钟 44 秒
-
(已锁定)
Bridge1 分钟 14 秒
-
(已锁定)
Bridge example5 分钟 31 秒
-
(已锁定)
-
-
-