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 Inherited button to open the Inherited Operations window, which lists the operations that the classifier inherits from its parents:


  3. Select one or more operations, and then click the Override button 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.
  4. Click Close to return to the Operations tab, and then click OK to return to your model.