A class is a template for an object, and defines the data fields and methods of the object. The class methods provide access to manipulate the data fields.