Inheritance of Traits by Offspring Follows Predictable Rules. Genes come in different varieties, called alleles. Somatic cells contain two alleles for every gene, with one allele provided by each parent of an organism.