The commando and huntress class is always unlocked by default, whereas the others must be unlocked by completing challenges.
Risk Of Rain 2 Classes : Survivor class in risk of rain are unique playable character that you can unlock and control within the game.