Overriding an Attribute in PowerBuilder

When modeling for PowerBuilder, you can override attributes inherited from a parent class redefining them in the child class. You can only modify the initial value of the attribute and not any other properties.

  1. Double-click a class that is linked to a parent class in the diagram to open its property sheet, and then click the Attributes tab.
  2. Click the Override Inherited Attributes tool to display a selection window listing the attributes that belong to all the parent classes of the class.
  3. Select an attribute and click OK. A copy of the attribute is added to the list of attributes of the child class. It is grayed to indicate that its properties cannot be modified, and its stereotype is set to <<Override>>.
  4. Click OK.