L17Exercise-DesignPatterns
L17Exercise-DesignPatterns
Design Principle
The number and types of
Identify the aspects of your observers vary; observers
application that vary and separate are separated from the state
them from what stays the same. of the subject.
Design Principle
Subjects and observers know
Program to an interface, each other via interfaces.
not an implementation.
Design Principle
Observers are composed with their
Favour composition subject; no inheritance is used.
over inheritance.