According to Mendel's law of dominance,
in such a situation the dominant allele is displayed externally while the recessive allele remains masked i.e, the recessive remains in the genotype along with the dominant allele while in its phenotype, only dominant remains.