A constructor for a class initializes the variables in an object. That is, it stores values into the variables that the object holds.