Defining operations

Adding an operation from a parent class

You can add to a class an operation that belongs to a parent class. The new operation has the same signature (name and parameters) as the original operation, but does not have its other properties.

Once you add an operation to a class in this way, you can modify only the code implementation of the operation. You cannot modify the signature of the operation.

ϖTo add an inherited operation to a class:

1 Double-click a class that is linked to a parent class in the model. 2 Click the Operations tab.

3Click the Inherited button.

The Inherited Operations window appears showing the operations that belong to all the parent classes of the class.

4Select an operation.

5Click the Override button.

78

Page 88
Image 88
Sybase 7.5 manual Adding an operation from a parent class, To add an inherited operation to a class