In the sequence diagram in Question C, after calling the method register(), a reference to the account a is returned to the user, which is correct according to the UML. But why, then, do we need to call login() just to get the same reference again? Isn’t it redundant in this case?
I understand why both methods exist in general; I am just asking whether, in this case, it would suffice to call only register(), even though the scenario states that the user both registers and then logs in.
Regards,
Mahmoud
