I'm don't knowf botanical definitionn, but a fruit is something edible to promote propagation
of seeds, that is for instance to have animal eat fruit, and deposit seeds a long way from
where it was eaten, with nutrients to help seedling grow.
Offhand, a fig seems to do likewise, but there must be some techicality I don't know about.