26

设计模式学习笔记(十三):外观模式-氷泠的博客

 3 years ago
source link: https://blog.51cto.com/14415843/2513549
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1概述1.1引言根据单一权责原则,软件中将一个系统划分为若干个子系统有利于降低整个系统的复杂性,使客户类与子系统之间的通信和相互依赖关系达到最小,方法之一就是引入一个外观角色,为子系统的访问提供一个简单而单一的入口。外观模式通过引入一个新的外观角色来降低原有系统的复杂度,同时降低客户类与子系统类的耦合度。(这里的子系统是广义的概念,可以是一个类,一个功能模块,系统的一个组成部分或者一个完整的系统)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK