nus-cs2103-AY2122S2 / forum

14 stars 1 forks source link

Omitting of activation bar in sequence diagrams with self-invocation #307

Closed sbhbenjamin closed 2 years ago

sbhbenjamin commented 2 years ago

Since it is optional to include the activation bar, how do we illustrate self-invocations when it exists? Would it be valid to also omit the activation bar illustrating the self-invocation?

bingsen0806 commented 2 years ago

Yes you can, refer to quiz 6 below:

image

You can see that the activation bars of the function printing A and the function printing B are omitted when they are supposed to be self-invocation

sbhbenjamin commented 2 years ago

@bingsen0806 Ahh I see, thanks so much! Will close the issue now.