神秘果 on 九月 14th, 2009

定义

为子系统中的一组接口提供一个一致的界面,外观(Facade)模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。
Read the rest of this entry »
神秘果 on 九月 14th, 2009

 定义

动态地给一个对象添加一些额外的职责。就增加功能来说,装饰(Decorator)模式相比生成子类更为灵活。也叫包装器(Wrapper)。
Read the rest of this entry »