...

/

The Observable Object

The Observable Object

Let's learn about an Observable object, its characteristics, and the design patterns that are used to define it.

The Observable object

When an Observable object is created, we register an Observer object with the Observable. Then, as the Observable receives items, it calls all its subscribed Observer’s methods. There are three handler methods that the Observable can call:

Access this course and 1400+ top-rated courses and projects.