How to make a question: Asking Student - Hello, do you have maths class today?

Hi Sir,

There are three persons like Teacher, Student and me. Teacher teaches maths in school. If I want question Teacher and Student whether student have Maths class or not to attend and Teacher, whether he has Maths class or not to teach.

Q. Asking Teacher-> Hi Teacher, do you have maths class today?
Q. Asking Student-> Hello, do you have maths class today?

Please correct me if i was wrong.

Regards,
Vali.

Q. Asking Teacher-> Hi Teacher. Do you teach math class today?
Q. Asking Student-> Hello. Do you have math class today?

Hi Mister Micawber,

Thanks a lot for correcting me.