Cognitively a child has to learn the nature of the sex or genderitself. Boy or girl is permanent and remiains unchanged by things like modifications in clothing or hair length. Kids are told what they are suppose to act like. “All roles involve sets of expected behaviors, attitudes, rights, duties, and obligations” When boys play outside they are learning to be men or boy same as if a mother teaching her daughter to cook .. The children are learning gender roles.
By month 9 child treat men and woman different. By age 2 the child can successful pick whether they are male or female. By age four children know what roles they play as far as gender. Gender constancy the children figure out that basically if they are a boy they will always be a boy.
In entertainment children are exposed to sex-stereotyping. Woman are shown at home and men out working for example. Parents tend to stereotype the child's sex and gender by the activities they perform with their child. Cognitive states from the time the child learns what it is itbehaves as such. Gender Schema states that the child will “ model that has its roots in information-processing theories of cognitive development as well as in Kohlberg’s theory.”
This can be external and internal that changes the identity. Marcia means a period of deciion making when old values choices reexamined.
The child chooses friends that will share the same interest in playing. A boy child may not want to play house with a girl child instead he may want to play trucks. The child will learn from people of the same gender that teach them the roles that they will play.