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?
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With