HOPEX UML : HOPEX UML : The Class Diagram : The Class Editor : Creating objects in the class editor
   
Creating objects in the class editor
The class editor allows you to create attributes, operations, associations and inheritances.
For example, to create an operation:
1. Click the class concerned in the menu tree.
2. Then click the Create operation button in the editor toolbar.
The Create Operation dialog box opens.
3. Enter the name of the operation and click OK.
The operation created appears in the menu tree and in the Operations tab of the class properties dialog box.
Creating an association between two classes
To build an association between two classes:
1. In the class editor, select the class for which you wish to create an association.
*You can also create an association form from a role.
2. Click the Create association button in the toolbar:
3. In the dialog box that appears, enter the name of the associated class. You can query an existing class or create a new class.
4. Click OK.
The association appears in the editor.
Creating a generalization between two classes
To create a generalization between two classes:
1. In the class editor, select the class for which you wish to create a generalization.
2. Click the Create Inheritance button in the toolbar.
3. In the dialog box that appears, enter the name of the class that you wish to inherit. You can query this class by clicking the arrow at the right of the inherited class text box.
4. Click OK.
The superclass appears in the editor.