October 2023
Intermediate to advanced
344 pages
9h 52m
English
As an object-oriented programming (OOP) language, C# has good support for features that allow us to capture complex ideas and express them intuitively, such as classes, virtual methods, and inheritance. However, the language support for inheritance doesn’t extend to value types. Structs and record structs implicitly derive from the ValueType class, which is derived directly from object,
but they can’t inherit any other type and can’t themselves be inherited; that is, structs and record structs are implicitly sealed. Inheritance is a central feature of OOP that enables us to treat a reference to a derived class ...
Read now
Unlock full access