Most Drosophilidae breed in rotting material where they feed on yeast and bacteria, but there are also species that attack whole fruits.
Many Drosophilidae species reproduce in rotting materials and feed on yeast and bacteria, although some species also attack intact fruits.