设计模式学习10 Facade

来源:互联网 发布:山东软件行业协会 编辑:程序博客网 时间:2024/06/17 02:19

使用场景:

 

Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use.

Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use. 这个模式更多的是从架构的方式来考虑的。使用多个的subsystem向外提供一个同一的接口,客户程序不必因为内部实现而改变。

 

实现代码:

原创粉丝点击