G6PD deficiency is classified as an X-linked recessive inborn error that primarily affects males, while heterozygous females may exhibit normal, intermediate, or deficient G6PD activity due to random X chromosome inactivation. The gene discussed is G6PD; the disease is G6PD deficiency.