UML diagram - method with multiple arguments?

12,778

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"

Share:
12,778
Mark D
Author by

Mark D

Updated on June 11, 2022

Comments

  • Mark D
    Mark D almost 2 years

    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?