Qualcomm interview question

When would you use a class in object oriented programming?