Chapter 2 Building an Object-Oriented Model

The Selection window appears. It contains a list of all the attributes that exist in the model, with the exception of those that already belong to the class.

4Select the attributes that you want to add to the class. or

Use the Select All tool to add all the attributes in the list to the class.

5Click OK.

The attributes are added to the class and appear at the end of the list.

6Click OK.

Adding an operation to a class

An operation is the implementation of a service that can be requested from any object of the class in order to affect behavior.

You can add operations that already exist in the model and which belong to other objects.

ϖTo add an operation to a class:

1Double-click a class in the model. The class property sheet appears.

2Click the Operations tab.

31

Page 41
Image 41
Sybase 7.5 manual Adding an operation to a class, To add an operation to a class