How do i show the use of static methods in a UML class diagram?
class A{
public static void test(){
}
}
class B{
public void b(){
A.test();
@RobertMS is right.
Another alternative, is to use stereotypes:
..............................................................
....+----------------------------------------------------+....
....| StringUtilityClass |....
....+----------------------------------------------------+....
....| [+] void: lowerCase() <> |....
....| [+] void: upperCase() <> |....
....| [+] String: toString() <> |....
....+----------------------------------------------------+....
....| [+] String: LowerCaseCopy(String Value) <> |....
....| [+] String: UpperCaseCopy(String Value) <> |....
....| [+] String: ReverseCopy(String Value) <> |....
....+----------------------------------------------------+....
..............................................................
Note
Some programming languages best practices, especially those with C case-sensitive syntax, capitalize static functions, and leave in camel-lowercase the rest of functions.
Cheers.