From d0aa28478f42b836fb69e177c3b40e1cdfa0f7b5 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Wed, 13 Jul 2016 20:08:58 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8ee5b8d..595e449 100644 --- a/README.md +++ b/README.md @@ -254,10 +254,10 @@ usually by calling one of their methods. ### b. When to use Observer pattern ### c. Actors -* Subject -> Interface/Abstract Notifies interested observers when an event occurs -* Concrete Subject -> Implementation of Subject -* Observer -> Interface/Abstract class -> Registers to a subject, to be notified when a specific event happens -* Concrete Observer -> Implementation of the observer +* Subject -> Interface/Abstract Notifies interested observers when an event occurs. Allows Observer to subscribe/unsubscribe. +* Concrete Subject -> Implementation of Subject. +* Observer -> Interface/Abstract class -> Defines a method to be called when the Subject wants to notify observers +* Concrete Observer -> Implementation of the observer. Registers to a subject, to be notified when a specific event happens ### d. Pitfalls * Lapsed Listener problem