Chapter 16 Working with PowerBuilder


Overriding attributes

When a class inherits from another class, non-private inherited attributes can be defined as properties of the child class, allowing the user to define initial values in the child class.

Steps To override inherited attributes:

  1. Open the property sheet of a child class, and display the attribute page.
  2. Click the Inherited button.

    The Inherited Attributes dialog box appears. It contains the attributes of the parent class.
  3. Select one or several attributes in the list.
  4. Click the Override button.
  5. Click Close.

    The attributes appear in the child class list of attributes. You can modify their initial value in the corresponding column.
  6. Click OK.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.