The fruits fly life cycle starts when the female drosophila lays her eggs on a piece of fermenting fruit, or sweet organic material.
A female drosophila can lay upto 500 eggs. After eggs hatch into small white larvae, they eat from their nesting site for four days, absorbing the nutrients and energy needed to transform into adults.
Then larvae is in search of dark, dry places for pupation.
During this stage, the legless larvae grow six legs and a pair of wings before emerging as adults.
It takes four days for full pupation. During this period, the faint outline of the transforming fly is visible through the pupa case.