Object Diagram
An object diagram or instance diagram contains objects with values illustrating their attributes and links. It shows in detail the state of the system at a given moment.
You can create the object diagram of a class, component, package or use case.
Objects
An object is an entity with a well-defined boundary and identity that encapsulates state and behavior. Its state is represented by the values of its attributes and its relationships with other objects. Its behavior is represented by its operations and methods. An object is an instance of a class.
Examples of objects:
Business objects:
John Williams, Elizabeth Davis, Paul Smith are instances of the person class.
Orders 10533 and 7322 are instances of the order class.
Sony SPD-1730 Monitor, Compaq Deskpro 200 are instances of the item class.
Dupont and Burger King are instances of the company class.
Technical objects used for programming:
Dlg_Order_Create, Dlg_Client_Query are instances of the window class.
Str_Client_Name, Str_Product_Comment are instances of the string class.
*The objects represented in an object diagram can be instances of a class, package, use case, component, or node, to enable defining sequence diagrams at the desired level of detail.
Links
A link represents an instance of an association between two objects.
Examples of links between objects:
Order no. 10733 was placed by John Williams.
Order no. 10733 includes the products Sony SPD-1730 Monitor and Compaq Deskpro 200.
John Williams works for Dupont.
The window Dlg_Client_Query displays the string Str_Client_Name.