The study of genes and how genes are passed on from parents to children.