How do you have heredity?

Can you answer this question?