1) $game_actors[X].class_id = Y
2) $game_actors[X].learn_skill(Y)
I believe those are what you're looking for. In the first one, change X to the ID of the character and Y to the ID of the new class. For the second one, change X to the ID of the character and Y to the ID of the skill. Hope this helps