Answer:
Character development.
Step-by-step explanation:
The character development is a literary device used to evolve the character through the story.
Hamlet is an enigmatic character that begins the story as a grieving son who had recently lost his father, the King. When a ghost appeared in front of him he began to question about the veracity of the story around his father´s death. He got obsessed to prove his uncle´s guilt. And finally, he seeks to revenge his father´s murder by killing his uncle.
I hope this answer helps you.