Zelda will ask Link what he wants to do afterward prior to getting on the Demon Train for the final battle. The following responses will result in the corresponding endings:
RESPONSE - ENDING "Warrior" - Zelda will hear Link sword fighting below her window. "Engineer" - Zelda will hear Link's train whistle. "Dunno" - Random ending.