fourth class

The fourth class [noun] is the freshman class. As a noun, it is two separate words. As an adjective, it is hyphenated.

The fourth-class [adjective] cadet was early to class.

Do not use numerals when referencing.