今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
The Adapter pattern
- [Instructor] We're going to take a look at the adapter by looking at a real world analogy, a skateboard. A skateboard is a wooden board with wheels. There's a grippy surface that you stand on, but you're not attached to it. If you're good at skateboarding, you might know how to do an ollie or a kick-flip. These are tricks where you jump in the air with your board and hope to land on it. Let's say you wanted to transfer your skateboarding skills to a different surface, other than concrete. Let's say you wanted to skateboard on snow. You're probably thinking you'll need a snowboard. But are they really the same? You can't kick-flip a snowboard, because you're always attached to it. There's no grippy surface that you stand on. Recently a new snow sport has popped up called snow skating. A snow skateboard is a wooden board with a grippy surface that you stand on, but instead of wheels, its trucks are mounted on skis. If you…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
(已锁定)
The Adapter pattern2 分钟 20 秒
-
(已锁定)
Implementing an adapter6 分钟 24 秒
-
(已锁定)
The Proxy pattern2 分钟 11 秒
-
(已锁定)
Implementing a proxy5 分钟 48 秒
-
(已锁定)
The Composite pattern3 分钟 12 秒
-
(已锁定)
Implementing composites5 分钟 59 秒
-
(已锁定)
The Decorator pattern4 分钟 3 秒
-
(已锁定)
Implementing decorators4 分钟 24 秒
-
(已锁定)
-
-