As I understand, in academia 'Class of 20XX' refers to students graduating during the year 20XX irrespective of the year they joined college.

Supposed for a postgraduate course, one person chooses the full-time study mode while another chooses the part-time one. Both of them graduate during the same year. Are the both considered as the same class?