Genetics is the science of genes, heredity, and variation in living organisms. Genetics deals with the molecular structure and function of genes, with gene behavior in the context of a cell or organism with patterns of inheritance from parent to offspring, and with gene distribution, variation and change in populations.