nus-cs2103-AY1920S1 / forum

Forum
1 stars 1 forks source link

Meaning of "self" in sequence diagrams #189

Open tswuxia opened 4 years ago

tswuxia commented 4 years ago

image image

Why does the comment say m2 calls m4 of self? I thought self should refer to f:Foo instead of b:Bar? Or is it I understood the meaning of "self" wrongly. Thanks.

damithc commented 4 years ago

Or is it I understood the meaning of "self" wrongly.

Yes. Here, it means an object calling a method of itself. There is only one such case in the the diagram.