October 2008
Intermediate to advanced
784 pages
18h 11m
English
A class is a data structure that may contain 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 a derived class can extend and specialize a base class.
A class-declaration is a type-declaration (§9.6) that declares a new class.
class-declaration: attributesopt class-modifiersopt partialopt class identifier type-parameter-listopt class-baseopt type-parameter-constraints-clausesopt class-body ;opt
A class-declaration consists of an optional set of attributes ...