Structure (struct), structure struct
A structure is a data type defined by a programmer and is very similar to a class. Both include data members and function members.
Difference: 1. The class is the reference type, and the structure is the value type.
2. The structure is implicitly sealed, that is, the structure cannot be derived.
The structure type is the same as all value types and contains its own data. Note: The variable of the structure type cannot be null, and the two Structure Variables cannot reference the same object.
Assign a value to the structure
Assigning a structure to another structure means copying values from one structure to another, while the class is copying references.
The structure can have instance constructor and static constructor, but not destructor.
Fields in the structure cannot be initialized.
The structure is sealed and cannot be derived