Question: what does it mean if a guy stares at you in class?
Answer: If a guy looks at you all the time, he is almost certainly highly attracted. Since you don't mention any attempts at interaction on his part, likely he is very shy and or uncertain of how you might respond and unwilling to risk rejection. If you like him or think you might be interested, smile at him.