Closed weekiat-douze closed 1 year ago
@weekiat-douze
This is a user typing a command, not a method call.
Also note:
@damithc I see. Then would it be wrong if arguments are excluded in the pseudo code? For example, Week 8 Tutorial, addPerson() instead of addPerson(p) or Person() instead of Person("Adam", "friend")
PersonList personList = new PersonList();
while (hasRoom) {
Person p = new Person("Adam", "friend");
personList.addPerson(p);
}
I see. Then would it be wrong if arguments are excluded in the pseudo code? For example, Week 8 Tutorial, addPerson() instead of addPerson(p) or Person() instead of Person("Adam", "friend")
PersonList personList = new PersonList(); while (hasRoom) { Person p = new Person("Adam", "friend"); personList.addPerson(p); }
@weekiat-douze Depends on the context. It could be misleading as foo(x)
and foo()
are technically two different methods. Perhaps something like foo(...)
might be better to clearly show that parameters have been omitted.
I see, understood. Thank you!
The example here is also not in the method() format. Is there any restrictions when drawing invocations in sequence diagram?