Of the following statements, which is the best definition of a character foil?
A. an evil character that always tries to thwart the protagonist
B. a character that acts in opposition to the protagonist
C. a good character that serves as a sidekick to the protagonist
D. a character that has contrasting characteristics to the protagonist