The study of inheritance and genetic variation in organisms, including DNA structure, replication, and gene expression.