How to present an abstract class in UML class diagram

Rui picture Rui · Sep 5, 2017 · Viewed 41.7k times · Source

UML class diagram is a handy tool in object-oriented design. I am using it currently and facing presenting an abstract class with UML. I googled it but got nowhere.

So I would like to ask how to express an abstract class in UML class diagram, and it must be able to differentiate from concrete class

Answer

Loïc Di Benedetto picture Loïc Di Benedetto · Sep 5, 2017

You have to write the class name in italic :

enter image description here

Here Context is an abstract class and Structure is a "concrete" class

P. 99 of the specs says:

The name of an abstract Classifier is shown in italics, where permitted by the font in use. Alternatively or in addition, an abstract Classifier may be shown using the textual annotation {abstract} after or below its name.