Heredity is the transfer of characteristics from parents to offspring through reproduction, while genetics is the study of transmission of these characterisitcs from parents to their offsprings.
A gene is the basic structural and functional unit of heredity. They are made up of DNA and are parts of chromosomes.