Kingdom: Animalia
Phylum: Arthropoda
Class: Insecta
Order: Diptera
Family: Drosophilidae
Genus: Drosophila
Subgenus: Sophophora
Species group: melanogaster group
Species subgroup: melanogaster subgroup
Species complex: melanogaster complex
Species: D. melanogaster
Binomial name: Drosophila melanogaster
Common name: Common fruit fly, Vinegar fly.

This species is one of the most commonly used model organisms in biology, including studies in genetics, physiology, microbial pathogenesis and life history evolution because they are easy to take care of, breed quickly, and lay many eggs.
These fruit flies have brick red eyes, are yellow-brown in colour, and have transverse black rings across their abdomen. They exhibit sexual dimorphism: females are about 2.5 millimetres long; males are slightly smaller and the back of their bodies is darker. Males are easily distinguished from females based on colour differences, with a distinct black patch at the abdomen, less noticeable in recently emerged flies and the sexcombs (a row of dark bristles on the tarsus of the first leg). Furthermore, males have a cluster of spiky hairs (claspers) surrounding the reproducing parts used to attach to the female during mating. 

The D. melanogaster lifespan is about 30 days at 29 °C

The developmental period for Drosophila melanogaster varies with temperature, as with many ectothermic species. The shortest development time (egg to adult), 7 days, is achieved at 28 °C  Under ideal conditions, the development time at 25 °C is 8.5 days, at 18 °C it takes 19 days and at 12 °C it takes over 50 days. Under crowded conditions, development time increases, while the emerging flies are smaller. Females lay some 400 eggs (embryos), about five at a time, into rotting fruit or other suitable. The eggs, which are about 0.5 millimetres long, hatch after 12–15 hours (at 25 °C). The resulting larvae grow for about 4 days (at 25 °C) while moulting twice (into 2nd- and 3rd-instar larvae), at about 24 and 48 h after hatching. During this time, they feed on the microorganisms that decompose the fruit, as well as on the sugar of the fruit itself. Then the larvae encapsulate in the puparium and undergo a four-day-long metamorphosis (at 25 °C), after which the adults eclose (emerge).

Females become receptive to courting males at about 8–12 hours after emergence. Males perform a sequence of five behavioural patterns to court females. First, males orient themselves while playing a courtship song by horizontally extending and vibrating their wings. Soon after, the male positions itself at the rear of the female’s abdomen in a low posture to tap and lick the female genitalia. Finally, the male curls its abdomen and attempts copulation. Females can reject males by moving away and extruding their ovipositor. The average duration of successful copulation is 30 minutes, during which males transfer a few hundred very long (1.76 mm) sperm cells in seminal fluid to the female. Females store the sperm in a tubular receptacle and in two mushroom-shaped spermathecae, sperm from multiple matings compete for fertilization.




A fruit fly caught by a jumping spider.
[1] 

Thanks to Wikipedia for text and information: https://creativecommons.org/licenses/by-sa/3.0