Question: how did harry learn that the sword of gryffindor could destroy horcruxes?
Answer: Harry and Hermione are over the moon with what they've learned: the sword can destroy Horcruxes because it's impregnated with basilisk venom. ... Harry counters that they both knew what they were signing up for by coming with him, and that he told them everything that Dumbledore told him.