POP Vs OOP
POP Vs OOP
Main Program
Function - 4 Function - 5
CODE
Data
Global Data Global Data
Data Data
DATA
Object - 3
Functions
Data
POP Vs OOP
1. POP divides a program into smaller procedures or 1. OOP divides a program into smaller objects.
functions.
2. Top - Down approach. 2. Bottom - Up approach.
3. Every function has different data, so there’s 3. Data in each object is controlled on its own.
no control over it.
4. Parts of a program are linked through parameter 4. Object functions are linked through message
passing.
passing.
5. Expanding data and function is not easy. 5. Adding new data and functions is easy.
6. No access modifiers are supported. 6. Access control is supported via access modifiers.
7. Example of POP are : C, VB, FORTRAN, Pascal. 7. Example of OOP are : C++, JAVA, VB.NET,
C#.NET.
8. Follows a systematic approach to solve the problem. 8. Focuses on security of the data irrespective of the
algorithm/function.
9. Functions are more important than data in a program. 9. The main priority is data rather than functions in a
program.
10. It doesn’t support OOPs features. 10. It supports OOPs features.
Thank You