IBM Support

Difference between Object Model Diagram and Class Diagram in Rational Rhapsody

Question & Answer


Question

What is the difference between an Object Model Diagram and a Class Diagram in IBM Rational Rhapsody?

Cause

You may want to understand which diagram is more suitable as per your requirement.

Answer

Class diagram is a graph of classifier elements connected by their various static relationships. A “class” diagram may also contain interfaces, packages, relationships, and even instances,
such as objects and links. Perhaps a better name would be “static structural diagram”, but “class diagram” is shorter and well established.

Object diagram on the other hand is a graph of instances, including objects and data values. A static object diagram is an instance of a class diagram. It shows a snapshot of the detailed state of a system at a point in time. The use of object diagrams is fairly limited, mainly to show examples of data structures.

The actual differences lie in their purpose. A Class diagram shows your classes and their relationships. An Object Model Diagram shows the interaction between objects at some point, during run time.

A Class Diagram will show what the Objects in your system consist of (members) and what they are capable of doing (methods) mostly static. In contrast, an Object Diagram will show how objects in your system are interacting with each other at some point in time, and what values those objects contain when the program is in this state.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21683950