IntentProvide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use. 外观模式提供了一个统一的接口,用来访问子系统中的一群接口。外观定义了一个高层接口,让子系统更容易使用。 设计oo原则 个人体会:这个模式有点类似电源总闸,要关全部房间的灯没有必要一个一个房间去,直接找到电源总闸把电源切断不就全部房间的灯关了。。。。呵呵
|
|
来自: ansatsing > 《外观模式[facade]》