Update 设计模式.md

桥接模式模式增加了体现该模式特征的代码片段(多维度各自拓展)
This commit is contained in:
Dwade3 2018-12-10 20:20:35 +08:00 committed by GitHub
parent 5186e3cac1
commit 2204e7c69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
```