The study of heredity and the variation of inherited characteristics.