Closed kwokyto closed 3 years ago
There is no specific notation. You need to specify both/all overloaded methods with full signature in the diagram.
So your class diagram will have a printThing(:String)
and a printThing(:String, :int)
in the methods field.
okay thanks prof!
Is there any specific UML notation for methods with the same name that are overloaded?
e.g. public void printThing(String message) { print(message); }
public void printThing(String message, int x) { while (x--) { print(message); } }