Defining classes
22
Creating a class from the Browser
v To create a class from the Browser:
1 Right-click the Classes category in the Browser.
2 Select New from the contextual menu.
The property sheet of the class appears.
3 Type a class name and a class code.
4 Click OK.
A new class is created in the Classes category.
Creating a class from the list of classes
v To create a class by inserting it in the list:
1 Select Model➤Classes.
The list of classes appears.
Accessing the list of classes
The list of classes is accessible only from a diagram. If the current
diagram is of a package, the list contains all the classes that exist in
the package. If the current diagram is of the model, the list contains
all the classes that exist in the model.
2 Click a blank line in the list.
or
Click the Add a Row tool.
An arrow appears at the beginning of the line.
3 Type a name and code for the class.
4 Select a stereotype from the Stereotype dropdown listbox.
5 Select a visibility from the Visibility dropdown listbox.
6 Click OK.
A symbol for this class is inserted in the current model.