Imagine that Rockstar releases the same game twice. What will be the reaction of fans?
You must implement the Observers pattern and predict their reaction!
Please, do not change the provided code of the classes.
Imagine that Rockstar releases the same game twice. What will be the reaction of fans?
You must implement the Observers pattern and predict their reaction!
Please, do not change the provided code of the classes.
Sample Input 1:
GTA 5
GTA 5Sample Output 1:
Notification for gamer : Garry Rose
Garry Rose says : "Oh, Rockstar releases new game GTA 5 !"
Notification for gamer : Peter Johnston
Peter Johnston says : "Oh, Rockstar releases new game GTA 5 !"
Notification for gamer : Helen Jack
Helen Jack says : "Oh, Rockstar releases new game GTA 5 !"
Notification for gamer : Garry Rose
What? They've already released this game ... I don't understand
Notification for gamer : Peter Johnston
What? They've already released this game ... I don't understand
Notification for gamer : Helen Jack
What? They've already released this game ... I don't understandCreate a free account to access the full topic