单项选择题

Hamlet's melancholy derives from his ______.

A.inability to avenge his father’s death timely
B.fear of being killed in the action of revenge
C.fear of the consequences if he should fail in the revenge
D.painful thoughts of being deserted and betrayed by his close relatives and friends