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.

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

    The Inherited Attributes dialog box is displayed. 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.