An object can be created with the pair of statements. A class specifies the properties and methods that will be common to all objects that are instances of that class. An object is an encapsulation of data and procedures that act on that data. An object is a template from which classes are created. If member variables are declared as Private, they cannot be accessed directly from outside an object.
Methods can be either Sub or Function procedures.
A class named CGrades has a public function named AvgGrade . An instance of that class is the seventh object of a collection named Gradebook . In a class module, a property is implemented by two procedures, one to set and the other to retrieve the property value. In addition to the two predefined events for classes, Initialize and Terminate, other events can be defined by the programmer to communicate changes of properties, errors, and the progress of lengthy operations.