Polyphenism occurs when the animal inherits a developmental switch. The switch is sensitive to some environmental cue or trigger. For example, the sex of crocodiles is determined by the prevailing temperature. Their gender is a polyphenic trait, and is not determined by the usual sex linkage.