What determines the inherited traits an organism has?

A. the proteins produced by a cell
B. the number of chromosomes in a cell
C. the size of the chromosomes
D. the genes of its chromosomes