It is not polite to eat or drink in class.But you can eat after class.Taking off one's shoes in the classroom is also not polite.
Get to class on time or a little earlier.If you come late,go to your seat and sit down quietly.In the US,you don't have to knock before you enter the classroom.