A student who is in the same class at school.
(by extension) A member of a different sort of class, such as locomotives etc.