nus-cs2103-AY2122S2 / forum

14 stars 1 forks source link

Modeling System.out for Sequence Diagram #308

Closed aweijun closed 2 years ago

aweijun commented 2 years ago

Hi, I came across this question in the textbook. I was wondering how can we model System.out in this context.

telegram-cloud-photo-size-5-6307294598598340561-y

damithc commented 2 years ago

@aweijun There's no need to capture line 14 in the sequence diagram. But if you must, you can send a method call println(q) toe an entity out:PrintStream (out is a class-level public PrintStreamobject in the System class)

aweijun commented 2 years ago

Thanks Prof!