Structs are lightweight types that make fewer demands on the operating system and on memory than conventional classes. PowerDesigner models C# 2.0 structs as classes with a stereotype of <<Structure>>.
For information about creating and working with classes, see Classes (OOM).
A struct can implement interfaces but does not support inheritance; it can contain events, variables, constants, methods, constructors, and properties.
In the following example, the struct contains two attributes:
{ public struct Point { public int New() { return 0; } private int x; private int y; } }