Immunity is the state of being immune to disease. Infection with a disease organism or…