Improve your public speaking skills - The more you improve your public speaking skills, the easier it will be to overcome your fear of class participation.
Get yourself in a comfortable and relaxed state of mind - Make yourself comfortable and just try to have fun in class. If you give a wrong answer, ask your teacher for the right answer and move on.
Aim to be the smartest person in the room - Aiming to be the smartest person in the room isn’t arrogant. Show your teacher that you’re taking your education seriously and that you value time in the classroom.