Final answer:
The Oedipus complex in boys and the Electra complex in girls are resolved through identification with the same-sex parent.
Step-by-step explanation:
The Oedipus complex in boys and the Electra complex in girls are resolved through a process called identification. In the Oedipus complex, a boy desires his mother and wishes to replace his father. However, he eventually identifies with his father and internalizes his father's values and behaviors. This resolves the complex and allows the boy to develop a healthy sense of self. Similarly, in the Electra complex, a girl desires her father and wishes to take her mother's place. She eventually identifies with her mother and develops a sense of femininity. This resolves the complex and helps the girl establish her own identity.