A prejudice against or in favor of people belonging to a particular social class, resulting in differential treatment.