From 2204e7c69ff63a240e85b81d20ca7f28f1e8f911 Mon Sep 17 00:00:00 2001 From: Dwade3 <36162683+PualrDwade@users.noreply.github.com> Date: Mon, 10 Dec 2018 20:20:35 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=AE=BE=E8=AE=A1=E6=A8=A1=E5=BC=8F.m?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 桥接模式模式增加了体现该模式特征的代码片段(多维度各自拓展) --- notes/设计模式.md | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } ```