It defines a set of properties and methods that are common to all objects of one type . For example, a class could be a car, which could have a color field, four tire fields, and a drive method. Another related class could be a truck, which would have similar fields, but not be exactly the same as a car.