Observer (cont.)
n
To implement the relation, the target
provides a method (
register
) for the
observer to use to identify itself to the
target, and the observer has a method
(
update
) that the target calls to inform the
observer of a state change.