Closed benclmnt closed 3 years ago
- With regards to picture 1, is it okay to have the return label of the constructor activation bar (
p
) differs from the name of the object (bar
)?
That's a mistake, although unintentional.
2. With regards to picture 1, must the object lifeline continues outside the box or otherwise we need to show object deletion (
X
)?
No need. We assume it to continue in the absence of an X
3. With regards to picture 2, do we need to have method call label for arrow 1 (constructor call) and arrow 2 (method call)
Constructor can be omitted if obvious. But no way to know which method is being called unless stated?
4. How should we label the arguments to a method call? e.g. a call to
sort(List<Integer> numbers, boolean isMutable)
sort(numbers, isMutable)
should do
Thanks prof!
Hi prof @damithc,
p
) differs from the name of the object (bar
)?X
)?sort(List<Integer> numbers, boolean isMutable)