Public Opinion Towards Death Penalty

While deciding the question of abolition of death penalty, will public opinion matter before Constitutional Courts or even a legislature?