CSDN博客

img wangjiong

Observer

发表于2004/9/15 18:42:00  598人阅读

分类: Design Patterns

Benefits:
• It abstracts the coupling between the subject and the observer.
• It provides support for broadcast type communication.

Applicable Scenarios:
• A change to an object requires changing other objects, and the number of objects that need to be changed is unknown.
• An object needs to notify other objects without making any assumptions about the identity of those objects.

0 0

相关博文

我的热门文章

img
取 消
img