May 2010
Intermediate to advanced
1272 pages
61h 18m
English
As for other built-in value types, structures implicitly inherit from the System.ValueType type that inherits from System.Object. This is the only inheritance level allowed for structures. This means that, different from reference types (classes), structures can neither inherit nor derive from other structures; therefore, the Inherits keyword is not allowed within structures. Because structures derive from System.Object, they inherit only from such class as the Equals, GetHashCode, and ToString methods that can also be overridden within structures. Chapter 12, “Inheritance,” provides detailed information on inheritance and overriding. Structures can instead implement interfaces; therefore, ...
Read now
Unlock full access