To confine in or as if in a coop.
Surrounded by an enclosure, cage, or some sort of restiction as for poultry or small animals.
An uncomfortably confined space.
A prison.
I've been cooped up in my room for the past two weeks preparing for this exam.
117👍 28👎