Word classes are categories into which we place words. Traditionally these have been called parts of speech, but word class is now the term used by linguists, and by the UK National Curriculum.
The meanings of words can often be helpful in assigning words to a particular category. This is an effective approach for younger students, but older students can take a more sophisticated approach.