Which of the following best describes the inheritance of a sex-linked trait?
A a recessive allele carried by females that affects only males
B a dominant allele carried by females that affects only males
C an allele carried on the Y chromosome that can affect both males and females
D an allele carried on an X chromosome that can affect males or females