Which statement best describes why Shakespeare’s Hamlet is a complex character?

Which statement best describes why Shakespeare’s Hamlet is a complex character?

A. His behavior represents the emotion of grief.
B. He expresses a singular desire for revenge.
C. He imparts to the audience a moral lesson about forgiveness.
D. His actions and emotions are varied and unpredictable.