Observer

xiaoxiao2021-03-06  52

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..

转载请注明原文地址:https://www.9cbs.com/read-116592.html

New Post(0)