Merge pull request #492 from PualrDwade/patch-1

Update 设计模式.md
This commit is contained in:
郑永川 2018-12-12 10:38:43 +08:00 committed by GitHub
commit 46dc74288e
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();
}
}
```