Use the Features window to change the features of a destructor
including its visibility and modifier.
About this task
On this General tab,
you define the general features for a destructor through the various
controls on the tab.
- In the Name box you specify
the name of the destructor. By definition, destructors have the same
name as the class, preceded by a tilde (~) symbol. To enter a detailed
description of the reception, 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.
- In the Stereotype list you
specify the stereotype of the attribute, if any. For information about
creating stereotypes, see Defining stereotypes.
- In the Visibility list you
specify the visibility of the reception (Public, Protected,
or Private). By default, destructors are Public.
- In the Modifiers area you
specify the modifiers of the destructor. Select Virtual,
if wanted.
To type code for the body of
the destructor, use the Implementation tab.