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
In UML, the abstract class has the same notation as that of the class. The only difference between a class and an abstract class is that the class name is strictly written in an italic font. An abstract class cannot be initialized or instantiated.
The names of abstract classes and methods are italicized in UML: An interface can be viewed as an abstract class containing only abstract methods. In Java an interface may not contain fields, private members, or methods.
Interface Notation Interface is represented by a circle as shown in the following figure. It has a name which is generally written below the circle. Interface is used to describe the functionality without implementation.
You have to write the class name in italic :
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With