Variation in ovipositor morphology.
 
The ovipositors in different species of insects (here, a scorpionfly, moth, and two fruit flies) are adapted to different substrates for egg laying.
 
Variation that is genetically determined will be inherited by offspring.