Abstract
Structs are programmer-defined data types, very similar to classes. They have data members and function members. Although structs are 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 they cannot be derived from.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Daniel M. Solis
About this chapter
Cite this chapter
Solis, D.M. (2012). Structs. In: Illustrated C# 2012. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4279-6_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4279-6_10
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4278-9
Online ISBN: 978-1-4302-4279-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)