Example Observer Application: Traffic Lights
This is the post where you have all been waiting for (I hope J), after reading the informative post what an Observer Pattern is. If you have no idea what an observer is, you better start reading my previous theoretical post about the Observer Pattern.
First an overview of the application we are going to build in this post:
- An application to create a traffic light who changes his colour
- Easy expandable
- Future equipped (easy to add changes)
- Object Oriented
- With the Observer Pattern