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.
- Open the property sheet of a child class, and display the attribute tab.
- Click the Inherited button.
The Inherited Attributes dialog box is displayed. It contains the attributes of the parent class.
- Select one or several attributes in the list.
- Click the Override button.
- Click Close.
The attributes appear in the child class list of attributes. You can modify their initial value in the corresponding column.
- Click OK.