Definition: A class is a blueprint that defines the variables and the methods common to all objects of a certain kind . The class for our bicycle example would declare the instance variables necessary to contain the current gear, the current cadence, and so on, for each bicycle object.