设计模式
garypotter
这个作者很懒,什么都没留下…
展开
-
装饰模式
装饰模式 一.定义 装饰模式(Decorator Pattern):Attach additional responsibilities to an objectdynamically keeping the same interface.Decorators provide a flexible alternativeto subclassing for extending functi原创 2016-05-05 19:44:35 · 255 阅读 · 0 评论 -
门面模式
一. 定义 Provide aunified interface to a set of interfaces in a subsystem.Facade defines ahigher-level interface thatmakes the subsystem easier to use.(要求一个子系统的外部与其内部的通信必须通过一个统一的对象进行。门面模式提供一个更高层次的接原创 2016-05-05 23:43:18 · 239 阅读 · 0 评论