Structs are programmer-defined data types, very similar to classes. They have data members and function members. Although similar to classes, there are a number of important differences. The most important ones are the following:
  • Classes are reference types and structs are value types.

  • Structs are implicitly sealed, which means that they cannot be derived from.


Class Variable Field Initializer Class Instance Struct Instance Reference Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Daniel Solis 2006

Personalised recommendations