From dec264a8938a7a6245fc22fa4321ecfd26102b8e Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Fri, 30 Oct 2026 20:19:44 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=AE=BE=E8=AE=A1=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20-=20=E5=A4=96=E8=A7=82.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补充实现代码中的客户端调用示例,文字校对参考文献中的标点符号。 --- notes/设计模式 - 外观.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/notes/设计模式 - 外观.md b/notes/设计模式 - 外观.md index 66e0795a..e178726d 100644 --- a/notes/设计模式 - 外观.md +++ b/notes/设计模式 - 外观.md @@ -48,6 +48,12 @@ public class Client { } ``` +```text +turnOnTV() +setCD( a movie ) +startWatching() +``` + ### 设计原则 最少知识原则:只和你的密友谈话。也就是说客户对象所需要交互的对象应当尽可能少。 @@ -55,4 +61,4 @@ public class Client { ## 参考资料 - 弗里曼. Head First 设计模式 [M]. 中国电力出版社, 2007. -- Gamma E. 设计模式: 可复用面向对象软件的基础 [M]. 机械工业出版社, 2007. +- Gamma E. 设计模式:可复用面向对象软件的基础 [M]. 机械工业出版社, 2007.