into ▁second - ▁and ▁third - inst ar ▁lar va e ), ▁at ▁about ▁ 2 4 ▁and ▁ 4 8 ▁h ▁after ▁h atch ing . ▁During ▁this ▁time , ▁they ▁feed ▁on ▁the ▁micro organ isms ▁that ▁de compose ▁the ▁fruit , ▁as ▁well ▁as ▁on ▁the ▁sugar ▁of ▁the ▁fruit ▁itself . ▁The ▁mother ▁puts ▁f ec es ▁on ▁the ▁egg ▁sac s ▁to ▁establish ▁the ▁same ▁micro b ial ▁composition ▁in ▁the ▁lar va e ' s ▁g uts ▁that ▁has ▁worked ▁posit ively ▁for ▁herself . ▁Then ▁the ▁lar va e ▁enc aps ulate ▁in ▁the ▁pup arium ▁and ▁under go ▁a ▁ 4 - day - long ▁met am orph osis ▁( at ▁ 2 5   ° C ), ▁after ▁which ▁the ▁adult s ▁e close ▁( emer ge ). ▁ ▁The ▁female ▁fruit ▁fly ▁pre fers ▁a ▁shorter ▁duration ▁when ▁it ▁comes ▁to ▁sex . ▁M ales , ▁though , ▁prefer ▁it ▁to ▁last ▁longer . ▁M ales ▁perform ▁a ▁sequence ▁of ▁five ▁behavior al ▁patterns ▁to ▁court ▁females . ▁First , ▁males ▁orient ▁themselves ▁while ▁playing ▁a ▁court ship ▁song ▁by ▁hor izont ally ▁extending ▁and ▁v ibr ating ▁their ▁wings . ▁So on ▁after , ▁the ▁male ▁positions ▁himself ▁at ▁the ▁rear ▁of ▁the ▁female ' s ▁ab d omen ▁in ▁a ▁low ▁post ure ▁to ▁tap ▁and ▁l ick ▁the ▁female ▁gen ital ia . ▁Finally , ▁the ▁male ▁curl s ▁his ▁ab d omen ▁and ▁attempts ▁cop ulation . ▁Fem ales