The type of fruit depends on the variety of plant species. As there are different species of flowering plants, so they produce different types of fruits. Also, as fruits are means of dispersal of seeds, so depending on the environmental conditions and means of dispersal available, plants have evolved to produce different types of fruits.