- This pattern provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes.
-
A car object, mileage will be recorded.
-
Once car has reached certain number of miles then maitenance will be needed.
-
A product object, quantity is recorded
-
When product quantity is zero then a notification will be thrown.