Male produces 2 different types of gametes
XO - e.g. grasshopper /
XY e.g. human , it is the type of sperm fertilising the egg that determine the sex of the offspring
Female produces 2 different types of gametes
ZW eg. : Birds , it is the type of egg getting fertilised with the sperm that determine the sex of the chick