In the 1880s, Louis Pasteur developed a method of weakening viruses. The weakened viruses could be injected into healthy individuals.

How is this method effective in fighting viral diseases?