The clownfish (photo below) is always born as a male with active male genitals and unactive female genitals.
In a group of clownfish there is 1 female that mates with the dominant male of the group.
When the female dies, the dominant male changes to a female.