Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I denote static classes in UML?

Tags:

c#

uml

So I did some research about how to denote static methods and classes in UML. I found on these two pages that static methods should be denoted by underlining them, but what is the correct way to display a class as being static?

like image 492
Robin Kanters Avatar asked Dec 03 '12 08:12

Robin Kanters


2 Answers

Marking a class as static is a very low level information, which we don't put in UML diagrams usually. UML 1.0 as well as 2.0 gives some flexibility to designer/developer to modify the convention if it suits to your audience/team.

You can put a note to that class, or use something like <<static>>( as used for interface).

like image 121
rai.skumar Avatar answered Nov 01 '22 22:11

rai.skumar


I would just use a stereotype <<static>>

like image 42
gefei Avatar answered Nov 02 '22 00:11

gefei