观察者模式( Observer Pattern)

文档地址:《设计模式之禅》​​​​​​​ 切入故事: 韩非子身边的卧底是谁派来的 定义: Define a one-to-many dependency between objects so that when one object changes state,all its dependents are notified and updated automatically.(定义对象间一种一对多
相关文章
相关标签/搜索