Update 设计模式.md
桥接模式模式增加了体现该模式特征的代码片段(多维度各自拓展)
This commit is contained in:
parent
5186e3cac1
commit
2204e7c69f
@ -2557,6 +2557,10 @@ public class Client {
|
||||
remoteControl1.on();
|
||||
remoteControl1.off();
|
||||
remoteControl1.tuneChannel();
|
||||
RemoteControl remoteControl2 = new ConcreteRemoteControl2(new Sony());
|
||||
remoteControl2.on();
|
||||
remoteControl2.off();
|
||||
remoteControl2.tuneChannel();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user