To dream that you are in class is a metaphor that you need to have more class.

To dream that you forget to attend a class you signed up for indicates your anxieties and fear of failing. You may also be lacking self-confidence in your ability to handle new responsibilities or projects.