How does the cactus suvurive?

in the body of a catus, water is stored as not much rain falls where a cactus so water is stored to prevent the cactus from dying out. there are thorns on cacti to prevent it from being eaten by a predator.