Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UML diagram - method with multiple arguments?

Tags:

java

uml

Say for example I have a method(constructor) as follows:

public animals(String a, String b, String c, int d){

When creating a written UML diagram, would I have to write String three times within the parameters or just once?

like image 247
Mark D Avatar asked Feb 12 '15 04:02

Mark D


Video Answer


1 Answers

It should be written as:

+animals(a:String, b:String, c:String, d:int)

By the way, your constructor should have the exact name of the class, and that must be in TitleCase, and should be singular (recommendation). Therefore, the recommended name here is: "Animal"

like image 69
Jebahar Deva Dhason D R Avatar answered Oct 10 '22 02:10

Jebahar Deva Dhason D R