Un copain de classe.
A classmate who is a friend
J'ai plusieurs copains.
I have several (male) friends
C'est mon copain.
He is my boyfriend
Mon copain est gentil.
My boyfriend is nice