nus-cs2103-AY2324S1 / forum

10 stars 0 forks source link

Question about class diagram's operation #551

Closed A1WAYSD closed 9 months ago

A1WAYSD commented 9 months ago

May I confirm whether the minimal representation of methods in class diagram is method_name(param_type) or can be simply method_name() in case it's enough to only know the method name? Thank you!

damithc commented 9 months ago

@A1WAYSD Even just method_name() is OK, but to avoid ambiguity, it is better to use method_name(...) to show that you are omitting the parameters.

A1WAYSD commented 9 months ago

@damithc Okay I see! Thank you prof for reminding the use of ...!