A class is a blueprint for creating objects, while a module is a collection of methods and constants that can be used by other classes.
For example, a class might be used to create objects that represent a car, such as a Ford Mustang. The class would define the attributes of the car, such as the make, model, and color.
A module, on the other hand, might contain methods for calculating fuel efficiency or calculating the cost of repairs. These methods could be used by any class, not just the car class.