dichogamy

noun
  1. 1

    The condition in which an organism changes sex during its lifetime.

Source: https://en.wiktionary.org/wiki/dichogamy