What influences prompted Gandhi to devise his system of nonviolent protest?

AHis caste position, his education in England, and a deep-seated pragmatism
BBritish education and experience in segregated South Africa
CExperience with British bureaucrats and deep-seated pragmatism
DBritish education, South African experience, and mysticism