Object Diagram

The Object Diagram is somewhat similar to the class diagram, with the crucial difference that only instances and not classes are shown here. It shows a specific section of the programme at runtime. The single objects are shown, as are the connections and multiplicities. This type of diagram is used, for example, to simulate an error in the running system.

If a certain behaviour of the software only occurs under certain conditions, this can be described with the Object Diagram by displaying the relevant properties and their values in the objects.

The following example shows a Class Diagram on the left and the corresponding Object Diagram on the right.

Fig. 64: Example Object Diagram (right) and associated Class Diagram