If the foundation is not good, you should take more notes.
Be careful in class?
Ask more questions. If you don't understand, think for yourself first. It's really impossible Now ask someone else. The teacher must do an assignment. If you can't do it, copy others' first and then analyze it slowly.