Which of these is the best definition of heredity?

the transfer of learning from one generation to the next

the transfer of visible features from one generation to the next

the passage of dominant genes from one generation to the next

the passage of genetic information from one generation to the next