Defining operations
78
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.
v 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.
3 Click the Inherited button.
The Inherited Operations window appears showing the operations that
belong to all the parent classes of the class.
4 Select an operation.
5 Click the Override button.