Abstract
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.
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
© 2008 Daniel Solis
About this chapter
Cite this chapter
(2008). Structs. In: Illustrated C# 2008. Apress. https://doi.org/10.1007/978-1-4302-0574-6_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0574-6_12
Publisher Name: Apress
Print ISBN: 978-1-59059-954-9
Online ISBN: 978-1-4302-0574-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)