I'm mad at my boyfriend when he doesn't go to class
Why are you so mad at your boyfriend? Do you think there is a good reason for him not going to class?
Because I think he's a hypocrite. He gets mad at others for missing class.
It is understandable why you are mad at your boyfriend, apart from being hypocritical, you want him to do better and he's not. You should talk to him and let him know that you care about his future.
I'm mad because he didn't go to class and I'm going to punish him by dumping him.
If he does not do the right thing you may need to dump him. It is important to talk to him so you don't have regrets later on.