Question: what is the difference between modular and object oriented programming?
Answer: The way you described modular programming via classes is just a way of separating modules. You can separate them as classes, or you can separate them as functions across multiple compilation units, for example. It's your choice. Object-oriented programming implies that your program is, well, oriented towards objects.