Update README.md

This commit is contained in:
Petrutiu Mihai
2016-07-13 23:29:09 +03:00
committed by Petrutiu Mihai
parent d0aa28478f
commit 196c596c2b

View File

@@ -254,7 +254,7 @@ usually by calling one of their methods.
### b. When to use Observer pattern ### b. When to use Observer pattern
### c. Actors ### c. Actors
* Subject -> Interface/Abstract Notifies interested observers when an event occurs. Allows Observer to subscribe/unsubscribe. * Subject (Observable) -> Interface/Abstract Notifies interested observers when an event occurs. Allows Observer to subscribe/unsubscribe.
* Concrete Subject -> Implementation of Subject. * Concrete Subject -> Implementation of Subject.
* Observer -> Interface/Abstract class -> Defines a method to be called when the Subject wants to notify observers * 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 * Concrete Observer -> Implementation of the observer. Registers to a subject, to be notified when a specific event happens