Example for Question 2
Consider the PopCan.py python program.
This was created using the observer design pattern (and below).
The class diagram for PopCan.py, created with ArgoUML (export graphics) is below.
PopCan.zargo is the ArgoUML data file. Load this into ArgoUML to play with the class diagram.
You can see the association between the source code and the design pattern in the
annotated version of PopCan.py