Some pteriophytes are heterosporous, e.g. Selaginella and Salvinia. In heterospory, the megaspore germinates to produce female gametophyte, while the microspore germinates to produce the male gametophyte. This event is a precursor of the seed habit in higher plants.