We don't know exactly how it will work but from the details we've been given, it seems as though progressing through the main storyline will get a single class from 1-50.

After that, I suppose you tackle Leves/Quests/Grinding to get your other classes maxed.