Search code examples
oopobjectmodulemodularityprocedural-programming

Modularity in OOP vs Procedural?


As part of a course, I've been asked to give a definition of Modularity in two cases. The Object-oriented programming and the Procedural one. After reading up on this concept I still do not understand how Modularity differs in those two. Could someone please highlight the major differences?

I've added the screenshot of the specific task to give you an idea of what I'm presented with.

Thank you in advance for your time and help.

enter image description here


Solution

  • Wikipedia has an article about "Procedural programming" where the two (procedural and object-oriented) are compared quite well. See the "Comparison with other programming paradigms" section of the article.

    Link of the article: https://en.wikipedia.org/wiki/Procedural_programming

    You can also read up on modularity there to understand the concept better.