nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Question about interface #518

Closed HCY123902 closed 3 years ago

HCY123902 commented 3 years ago

Hello, regarding interface in class diagram, if the interface has methods, will it be compulsory to include the empty attribute box, given that interface should not have attribute and the attribute box is normally empty?

GeNiaaz commented 3 years ago

Prof mentioned in one of the issues that it is not absolutely necessary to include the attribute box everytime, and may be omitted if not useful. In this case, especially, it would not make sense to include.

damithc commented 3 years ago

Prof mentioned in one of the issues that it is not absolutely necessary to include the attribute box everytime, and may be omitted if not useful. In this case, especially, it would not make sense to include.

Yup, optional.

HCY123902 commented 3 years ago

Thank you