Join Nostr
2026-10-28 20:23:22 UTC
in reply to

solo on Nostr: > The participants classes in the Observer pattern are:<li>Subject - interface or ...

> The participants classes in the Observer pattern are:<li>Subject - interface or abstract class defining the operations for attaching and de-attaching observers to the client. It is often referred to as "Observable".</li><li>ConcreteSubject - concrete Subject class. It maintains the state of the observed object and when a change in its state occurs it notifies the attached Observers. If used as part of MVC, the ConcreteSubject classes are the Model classes that have Views attached to them.</li><li>Observer - interface or abstract class defining the operations to be used to notify the registered Observer objects.</li><li>ConcreteObserver - concrete Observer subclasses that are attached to a particular Subject class. There may be different concrete observers attached to a single Subject that will provide a different view of that Subject.</li>

STOPPPPPP