This documentation is archived and is not being maintained.

10.1 Class declarations

Visual Studio .NET 2003

A class-declaration is a type-declaration (Section 9.5) that declares a new class.

attributesopt   class-modifiersopt   class   identifier   class-baseopt   class-body   ;opt

A class-declaration consists of an optional set of attributes (Section 17), followed by an optional set of class-modifiers (Section 10.1.1), followed by the keyword class and an identifier that names the class, followed by an optional class-base specification (Section 10.1.2), followed by a class-body (Section 10.1.3), optionally followed by a semicolon.