Exercise: Observer Design Pattern
Test your understanding of the observer design patterns.
We'll cover the following
Problem statement
The Shop
example in the previous lessons simply sends a notification. In this challenge, you’re required to send custom notifications to customers.
The direct customer should receive the following message: “Dear customer, the product you requested is now back in stock.”
The partners should receive the following message: “Dear partner, the product you requested is now back in stock.”
Coding challenge
Get hands-on with 1400+ tech skills courses.