 Some teleost species are hermaphroditic , which can come in two forms : simultaneous and sequential . In the former , both spermatozoa and eggs are present in the gonads . Simultaneous hermaphroditism typically occurs in species that live in the ocean depths , where potential mates are sparsely dispersed . Self @-@ fertilisation is rare and has only been recorded in two species , <unk> marmoratus and <unk> <unk> . With sequential hermaphroditism , individuals may function as one sex early in their adult life and switch later in life . Species with this condition include parrotfish , wrasses , sea basses , flatheads , sea breams and <unk> . 
