Students should not be allowed to listen to music in class as as students are not given guidance to which type of music should be played, they may listen to those songs which are considered inappropriate for their age. Inappropriateness ranges from songs with mature content to those with vulgarities. Especially after listening to songs with vulgarities, students tend to want to idolise their favourite singers by trying to use the "dirty" language against their family members and peers.
Students shouldn't be able to listen to music at all times while attending class, the large majority of class room participation is comprised of either lecture format teaching or an interactive learning method that the student would have to be audibly coherent in order to productively participate in. However when the students are allowed to catch up on homework or finish there in class work independently, they should be allotted the ability to listen to music while doing so. As modern research in learning habits suggest, not every student will learn in a similar fashion. Many students use listening to music as a focus method, or a way to block out any outside distractions that may hinder them from effectively completing their assignments. Now when it comes to the type of the music they are listening to, it should be a genre of music that the student finds appealing, and the regulation of appropriate content is the decision of the legally responsible adult, not the school or teachers.