Codominance occurs when two different alleles for a gene are both expressed in the phenotype of a heterozygous individual. This results in a blending or mixing of the traits associated with each allele, rather than a dominant-recessive relationship. An example is blood type in humans, where the AB blood type is codominant, expressing traits of both A and B alleles.