Displaying Attributes and Operations

Attributes and Operations may be displayed on a class diagram. Often, a class diagram is created specifically for this purpose—it shows the structure and behavior of the classes in a package. Relationships typically are not shown on this diagram.

CREATING A CLASS DIAGRAM TO SHOW THE ATTRIBUTES AND OPERATIONS FOR A PACKAGE

1.
Right-click to select the package in the browser and make the shortcut menu visible.
2.
Select the New:Class Diagram menu choice. A class diagram called NewDiagram will be added to the browser.
3.
With the new diagram selected, enter the name of the diagram.

ADDING CLASSES TO A DIAGRAM ...

Get Visual Modeling with Rational Rose 2002 and UML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.