can recessive alleles produce codominance?
An allele is not dominant or recessive by itself. It is dominant or recessive compared to another allele. Therefore, if you consider one locus (position on a sequence) that has two alleles (bi-allelic locus), you cannot have two dominant or two recessive alleles. It is like saying that two things are darker. In reality you can either say that one is darker than the other one or that the color is as dark as the other one. So either one allele is dominant (or partially dominant) and the other is necessarily recessive (or partially recessive) or the two alleles are codominant.



Think of a gene that influence a phenotypic trait such as tail length for example. This locus is bi-allelic (two different alleles (=variant of a gene) exist (=segregate) at this locus). We'll call the two alleles $A$ and $B$. An individual that homozygous $AA$ has trait value $M_{AA}$. The homozygotes $AB$ have trait value $M_{AB}$ and individuals $BB$ have trait values $M_{BB}$. Viewing this in a table it gives:

$$
\begin{array}{c|lcr}
\text{Genotype} &amp; \text{Tail length} \\
\hline
\text{AA} &amp; M_{AA}\\
\text{AB} &amp; M_{AB}\\
\text{BB} &amp; M_{BB}\\
\end{array}
$$

The following table gives the tail length of the different genotypes under the different types of interactions (dominance, partial dominance and co-dominance).

$$
\begin{array}{c|lcr}
\text{Interaction} &amp; \text{AA} &amp; \text{AB} &amp; \text{BB} \\
\hline
\text{A is dominant and B is recessive} &amp; M_{AA} &amp; M_{AA} = M_{AB} &amp; M_{BB} \\
\\
\\ &amp; &amp; M_{AA} &gt; M_{AB} &gt; M_{BB}\\
\text{Partial Dominance} &amp; M_{AA} &amp; \text{or} &amp; M_{BB} 
\\ &amp; &amp; M_{AA} &lt; M_{AB} &lt; M_{BB} \\
\\
\text{Codominance} &amp; M_{AA} &amp; M_{AB} = \frac{M_{AA} + M_{BB}}{2} &amp; M_{BB} \\
\end{array}
$$

Because, in the codominance case $M_{AB}$ is necessarily between the values of $M_{AA}$ and $M_{BB}$ ($M_{AA} &gt; M_{AB} &gt; M_{BB}$ or $M_{AA} &lt; M_{AB} &lt; M_{BB}$), one can consider codominance as being a special case of partial dominance where neither $A$ or $B$ dominates because they both contribute as much to the determination of the tail length.

Various definitions may exist for such concepts as well as for overdominance (also sometimes called heterozygous advantage) or stabilizing selection for examples. Those definitions differ in the sense that they sometimes apply to the value of the quantitative trait, to the fitness value (which is another quantitative trait) or to genetic polymorphism.