A class is a user-defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together.