Rui
Rui

Reputation: 3673

How to present an abstract class in UML class diagram

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

Upvotes: 44

Views: 104699

Answers (1)

Loïc Di Benedetto
Loïc Di Benedetto

Reputation: 897

You have to write the class name in italic :

enter image description here

Here Contexte 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.

Upvotes: 71

Related Questions