← BYTES
Design Patterns·Starter·Ref: 17.1.2

In the Observer pattern, what happens when the 'subject' changes state?

Have a question about this video? Mention reference 17.1.2 when you contact us.

a.The subject deletes itself
b.Nothing, observers must poll manually
c.The program terminates
d.All registered 'observers' are automatically notified of the change
The Observer pattern defines a one-to-many dependency: when the subject's state changes, it automatically notifies all subscribed observers, letting them react without the subject needing to know their concrete types.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1712#DesignPatterns