A class is a data structure that may contain a data description (constants or fields), function members (methods, properties, events, constructors), and nested types. Class types support inheritance, a mechanism whereby a derived class can extend and specialize a base class.
A class declaration describes a new class.
class-declaration:
attributesopt class-modifiersopt Class class-identifier class-baseopt class-body End Class class-identifieropt
class-identifier:
identifier
class-body:
class-member-declarationsopt
A class declaration consists of an optional set of class attributes, followed by an optional set of class modifiers, followed by the Class keyword and an identifier that names the class. Next, is an optional base class and implemented interfaces' specification, followed by a class body, which ends with the keyword sequence End Class. The class body determines a set of members for this class.
Additional information is contained in the following subsections:
See also: