 See also

Although classes and structures are similar in both the way they are declared and how they are used, there are some significant differences.Classes are reference types and structs are value types.A structure is allocated on the stack when it is declared and the variable is bound to its address.