CS401 | sw engineering
  • outline
  • projects
  • syllabus
  • links

"Modular" Programming

 

  • grouping of proceedures (functions) into "module"

    typically combine by similar functionality.




  • advantages:
    • more code reusibility (within and amongst programs)
    • Each module can have its own data.
    • This allows each module to manage an internal state which is modified by calls to procedures of this module.



  • disadvantages:
    • There is only one state per module
    • Each module exists at most once in the whole program
    • Data and Operations always decoupled.... modules about grouping of operations.

cs401:sw engieering

  • home
  • outline
  • projects
  • syllabus
  • links