ibm Rational Rhapsody 7.5 — Defining the attributes of a class

Class features Note: To create an instance of a class, select the Instantiation radio button and select the template that the instance is from. For example, if you have a template class A and create B as an instance of that class, this means that B is created as an instance of class A at run time. Selecting nested classes in windows Every primary model element is uniquely identified by a path in the following form: 1 >:: 2 >::... n >:: In this syntax, ns can be either a package or a class. Primary model elements are packages, classes, types, and diagrams. Classes can contain only other classes, stereotyped classes (such as actors), and types.

You can select a nested element in a window by entering its name in either of the following formats: Љ in :: ::... Љ :: ::... :: Defining the attributes of a class Attributes are the data members of a class. Rational Rhapsody automatically generates accessor ( get ) and mutator ( set ) methods for attributes, so you do not need to define them yourself. The Rational Rhapsody browser icon for attributes is a three-compartment class box with the middle compartment filled in: The icon for the Attributes category is black. The icon for an individual attribute is red. The icon for a protected attribute is overlaid with a key. The icon for a private attribute is overlaid with a padlock.

Rational Rhapsody 67