UML Modeling Techniques > Class modeling > Creating class modeling items > Creating a destructor
  
Creating a destructor
A destructor is an Operation that has the same name as its owning Class prefixed by ~. For example, the destructor for a Class named MyClass would be named ~MyClass.
For information about creating an Operation, see Creating an operation