You can unlock the subclasses for a character by completing a quest at Cosmodrome. You can talk to Ikora Rey or Commander Zavala who will assign you a mission called Guardian Rises. As you complete this mission, you will get another mission titled, a Spark of Hope.