You can use the annotation {abstract}under the class name.
It should look like this:
+---------------+
| Classname |
| {abstract} |
+---------------+
UML specifications c. 99:
The name of the abstract classifier is shown in italics, where permitted by the font used. Alternatively, or in addition, an abstract classifier can be displayed using the text annotation {abstract} after or under its name.
source
share