Based on the figurative language, what do the speaker in Shakespeare’s sonnet and the caged bird in the poem have in common?

They both feel unwanted by society.
They both are uneasy with people staring at them.
They both are angry at their circumstances.
They both blame bad fortune for their positions.