Struct attribute in a class diagram

Hi,
How do I add a struct attribute (variable) in a class diagram?
thanks,
Kalpak

Hi Kalpak,

Thank you for your post. The way to add an attribute in a struct is the same as adding an attribute to a class - Right-click on a Struct and select Add > Attribute from the popup menu. BTW, make sure the Struct stereotype is added to your Struct class.

image

Best regards,
Jick Yeung