Many flatworms (Phylum Platyhelminthes), such as this parasitic liver fluke, are hermaphrodites, containing both sexes in the same individual.

Sperm is produced in the testis and stored in the seminal vesicle.

Eggs produced in the ovaries pass into the oviduct, where fertilization can take place.