0% found this document useful (0 votes)
47 views5 pages

POP Vs OOP

Uploaded by

avsms 6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views5 pages

POP Vs OOP

Uploaded by

avsms 6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Procedural Oriented Programming

Main Program

Function - 1 Function - 2 Function - 3

Function - 4 Function - 5

CODE

Data
Global Data Global Data

Function – 1 Function – 2 Function – 3

Local Data Local Data Local Data


Object Oriented Programming
Object - 1 Object - 2

Data Data
DATA

CODE Functions Functions

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

You might also like