Sequential hermaphroditism
Sequential hermaphroditism (called dichogamy in botany) is one of the two types of hermaphroditism, the other type being simultaneous hermaphroditism. It occurs when the organism's sex changes at some point in its life.
Source: Wikipedia — Sequential hermaphroditism (CC BY-SA 4.0)