A cyst is a closed bag having a distinct membrane and developing abnormally in a cavity or structure of the body.