diff --git a/notes/设计模式.md b/notes/设计模式.md index f20a807a..dfa0a80d 100644 --- a/notes/设计模式.md +++ b/notes/设计模式.md @@ -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(); } } ```