A fruit is a blooming plant's soft, pulpy, seed-containing component.
It is unique to this class of plants and is made from the ovaries of angiosperms.Fruits come in a variety of colors because they contain phytochemicals that have a specific purpose.
Such as protecting the plant from pests, the sun's harmful rays, or other dangers.
For instance, many fruits and vegetables have the color orange due to carotenoids like beta-Carotene.