Dear student,
As the cactus is a succulent plant and well adapted for existing in higher temperature. The leaves of cactus are highly reduced and modified into spines. So their function of photosynthesis is performed by their fleshy stem.
Regards.