accessmodifier] [Shadows] [inheritability] Class Name
Indicates that the
Nameclass shadows any element of this same name in a base class.
One of the keywords,
NotInheritable, must be used.
MustInheritspecifies that objects of this class cannot be created, but that objects of derived classes can be created.
NotInheritablespecifies that this class cannot be used as a base class.
Name(required; String literal)
The name of the class.
Defines a class and delimits the statements that define that class’ variables, properties, and methods. For a detailed discussion with examples, see Chapter 4.
Rules at a Glance
Implementsstatements appear in a class module, they must appear before any other statements in the module. Moreover, the
Inheritskeyword must appear before the
Namefollows standard Visual Basic variable-naming conventions.
Within a class code block, members are declared as
Dimkeyword is equivalent to
Privatewhen used in class modules (but it is equivalent to
Publicin structures). Property declarations are automatically
Classconstruct can include the following ...