Character and behaviour are aspects of human life that are modelled over time. It is a journey that starts in childhood. Those two are the basic building blocks that make a person's social DNA, influencing decisions in one's life and even friendships.
Beyond the genes inherited from parents, the environmental factors play a huge role in conditioning one's personality and by extension the kind of relationship they can build and sustain with other people.