If you cancel at least 24 hours before the class starts, the class credit remains valid and can be reused.
Cancellations made less than 24 hours before the start of the class are considered late cancellations and the class credit is forfeited.
In case of doubt, contact your teacher.