Class types
A class type defines a data structure that contains data members (constants and fields), function members (methods, properties, events, indexers, operators, instance constructors, destructors and static constructors), and nested types. Class types support inheritance, a mechanism whereby derived classes can extend and specialize base classes. Instances of class types are created using object-creation-expressions (§7.6.10.1). Class types are described in §10. Certain predefined class types have special meaning in the C# language, as described in the table below.
The object type The object class type is the ultimate base class of all other types. Every type in C# directly or indirectly derives from the object class type. The keyword object is simply an alias for the predefined class System.Object.
|