JasonChang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.

   Observer Pattern = Publisher + Subcribers

 

implemenation:

 

posted on 2013-12-02 08:37  JasonChang  阅读(148)  评论(0)    收藏  举报