You have to re-enroll for the course again if you could not attend a class. But if you already know that you will not be able to attend the class, then you can change the class before itself, for some other date/ period.