An author can reveal character traits by using different methods of characterization (i.e. thoughts, quotes, actions, values). The actions and perception of the character by other characters can be interpreted to reveal more information about a character’s personality and backstory as well.
Hope this helped!