In most situations "in class" is not hyphenated. However, when used as a compound adjective, such as "in-class discussion," it is grammatically correct to hyphenate "in class".