Gender Identity Development

An interviewer questions two young boys about their gender and why they know why they are either a boy or a girl. She initially asks two questions: Are you a boy or a girl? and When you were born, were you a boy or a girl? Generally, by what age do children develop gender constancy?