acording to their origine fruit are classfied into Simple fruits: a simple fruit is formed from the single ovary of a flower (unicarpellate or gamocarpellate ovary).
Multiple fruits: come from flowers whose gynoecium is dialycarpellate (free carpels). In this case, a single flower produces several fruits.
Compound fruits: formed from the whole inflorescence
Complex fruits: result from the combination of the gynoecium of a flower with which other parts of the flower are associated (receptacle, perianth, etc.).