XP is gained same in a group, its not like the kill counter wich is personal. when ur group is faster to clear a map, u gain faster xp to.
conclusion: it doesnt matter wich class u are when ur group sucks

to find out with wich class u have more fun u must tryout all three ones...