Introduction to Object-oriented Programming - slide 9 : 22
Data-centered modularity
Modularity is the property of a computer program that measures the extent to which it has been composed out of separate parts called modules [Wikipedia]
Procedural modularity
Made up of individual procedures or functions
Relatively fine grained
Not sufficient for programming in the large
Boxing modularity
A wall around arbitrary definitions
As coarse grained as needed
Visibility may be controlled - import and export
Data-centered modularity
A module built around data that represents a single concept
High degree of cohesion
Visibility may be controlled
The module may act as a datatype
Object-oriented programming is based on data-centered modularity