Explanation:
The phrase "all the world's a stage and all the men and women merely players" is an example of a metaphor. This figure of speech compares the world to a stage and people to actors, suggesting that life is like a play where individuals play different roles and go through various stages or experiences.