You can have VisualAge generate part source code and feature code for your part. If you generate part source code, you should generate feature code separately. Each time you generate part source code, VisualAge replaces existing code because there is no need for you to modify it. Each time you generate feature code, however, VisualAge appends the newly generated code to the end of the existing feature code. This is done so that you will not lose any code that you have written.
The first time you generate feature code, you will probably want to generate code for all of your features. Then, you can generate code for other features as you add them.
| Note: | If you regenerate code for a feature, be sure to first remove the previous code for that feature to prevent compilation errors or unwanted results. |
To generate feature code, do the following:
Generated Code
Incorporating User-Written Code
into Visual Composites
Specifying Code Files
Modifying Generated Feature
Code
