Inheriting and Overriding Operations from Parent Classifiers

PowerDesigner lets you view and override operations inherited from parent classes from the child class property sheet Operations tab.

In order to inherit and be able to override inherited operations, your class must be linked to one or more parent classifiers that have operations specified.
  1. Open the property sheet of a class that is linked by a generalization link to one or more parents and click the Operations tab.
  2. Click the Override Inherited Operation to open a selection dialog, which lists the operations that the classifier inherits from its parents.
  3. Select one or more operations, and then click OK to copy them to the list of operations of the child class with their stereotype set to <<Override>>.
    Each overridden operation has the same signature (name and parameters) as the original operation, and you can only modify the code on its Implementation tab.