The mechanism which decides which of several morphs an individual displays is called the "switch". This switch may be genetic, or it may be environmental. Taking sex determination as the example, in man the determination is genetic, by the XY sex determination system. In Hymenoptera (ants, bees and wasps), sex determination is by haplo-diploidy: the females are all diploid, the males are haploid.