Constructors are called when a class is instantiated.
Procedure
- Depending on if you want
to use the Features window or the IBM® Rational® Rhapsody® browser:
- The Constructor Arguments window
opens.
- Click Add. The Argument window
opens.
- Type in a name for the new constructor and
change the default values as necessary.
- Click OK twice.
Results
The new constructor is listed under the Operations category
for the class in the Rational Rhapsody browser,
as shown in the following figure:.