In Introduction you learned that .NET types consists of classes, structures, enumerations, interfaces, and delegates. Classes were discussed in Chapter 4, “Objects and Classes” and you should be familiar with them by now.
The second type, structures or simply structs, are like classes, in which they can have members like fields and methods. Unlike classes, however, structures are value types and cannot inherit or be inherited. The .NET Framework class library offers many of them. For example, the System namespace defines important structures like Byte, Char, Int32, and DateTime that represent important data types.
This chapter explains what a structure is and shows a couple of examples.