They are both acceptable questions. They don't necessarily mean the same thing. The first doesn't assume there is a class. It simply asks if the person is going to go to school the next day. The second only asks if the person has one single class at some point tomorrow.
Do you have to go to school tomorrow?
Do you have classes tomorrow?
Student or Learner