In common usage, the word 'class' is replaced with the class you're referring to, e.g. French, English, Maths.
He's my Math buddy. We work on fractions together.
2. She wasn't my friend, she was my French buddy. Working on irregular verbs does not count as a friendship.
3. He was my class buddy. Not sure what class.