If Shakespeare kills the character of Hamlet, he would be using unhappy ending. Option D is correct.
When an author decides to kill the protagonist of his/her story, the story is considered to have an unhappy ending due to the fact that the main character passed away. Hamlet is one of the most famous tragedies written by Williams Shakespeare and it is considered among the most powerful and influential works of world literature.