In: Computer Science
Modularity means dividing the functionality of an algorithm into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.
Advantages
Example
The spell check feature in word processor is a module of software, which runs along side the word processor itself.
Software design life cycle models are designed into several phases or modules.
Object oriented programming languages have classes and objects which is also a good example of modularity