ibm Rational Rhapsody 7.5 — Defining constructor features

Class features The new constructor is listed under the Operations category for the class in the Rational Rhapsody browser. . Defining constructor features The Features window enables you to change the features of a constructor, including its arguments and initialization code. Double-click the constructor in the Rational Rhapsody browser to open its Features window. On this General tab, you define the general features for a constructor through the various controls on the tab. Notice that the signature for the constructor is displayed at the top of the General tab of the Features window. Љ In the Name box you specify the name of the constructor.

The default name is the name of the class it creates. To enter a detailed description of the constructor, use the Description tab. Љ If the Name box is inaccessible, click the L button to open the Name and Label window to change the name, if any. For information on creating labels, see Descriptive labels for elements . Љ In the Stereotype list you specify the stereotype of the attribute, if any. For information on creating stereotypes, see Stereotypes . – To select from a list of current stereotypes in the project, click the Select Stereotype button . – To sort the order of the selected stereotypes, click the Change Stereotype Order button . Note:

The COM stereotypes are constructive; that is, they affect code generation. Љ In the Visibility list you specify the visibility of the reception ( Public , Protected , or Private ), if available. The default value is Public . Rational Rhapsody 77