SlideShare a Scribd company logo
Object oriented programming.
Vs
Procedural oriented programming.
Prepared by: nihar joshi
2/10
 In Pop Top down approach is use in program design.
 In oop bottom up approach use in program design.
 To add new data and function in pop is not so easy.
example:C requires all the variables to be defined at the starting of a scope.
 Oop provide easy way to add new data and function. we can add data member anywhere in program
example:C++ allows the declaration of variable anywhere in the scope i.e. at time of its First use.
3/10
 In pop No access specifiers are used.
example: In structure all the members are public.
 In oop Public,Private,protected Access specifiers are used.
example: in class data is private & member function is public
#include<iostream.h>
class a
{
private:
data
public:
member function
};
4/10
 In POP, Most function uses Global data for sharing that can be
accessed freely from function to function in the system.
 In OOP, data can not move easily from function to function, it can be kept public or
private so we can control the access of data.
example: in class the data member declared in private mode are only access
through it’s member function.
5/10
 POP does not have any proper way for data hiding.
example: in structure data are declared in public mode so it is less secure.
 Oop provides data hiding, so it is more secure.
example: data member declare in private are not accessible outside class.
#Include<iostrean.h>
class a
{
int a;
void read();
public:
Void update();
void write();
};
int main(){
a ob;
ob.read(); //object can not access ,private member
}
6/10
 Pop program is divided into small parts called function.
 Oop program is divided into small part called object.
 In POP, Importance is not given to data but to functions as well as sequence of actions to be
done
 In OOP, Importance is given to the data rather than procedures or functions because it works as
a real world.
7/10
 In pop overloading is not possible.
 In oop overloading is possible in the form of function overloading
& operator overloading.
example: overloaded add().
//declaration
int add(int a,int b);
int add(int a,int b,int c);
double add(double x,double y);
double add(double p,double q);
8/10
 EXAMPLE OF POP:
i. C
ii. VB
iii. FORTRAN
iv. PASCAL
 EXAMPLE OF OOP:
i. C++,
ii. JAVA,
iii. VB.NET,
iv. C#.NET.
9/10
diffrence between procedure oriented programming & object oriented programming (pop vs oop)
Ad

Recommended

PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
Uttam Singh
 
About bca
About bca
Victorian Institute of Technology
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
ANJALAI AMMAL MAHALINGAM ENGINEERING COLLEGE
 
User Defined Functions
User Defined Functions
Praveen M Jigajinni
 
K - Map
K - Map
Abhishek Choksi
 
Oop basic overview
Oop basic overview
Deborah Akuoko
 
Procedural vs. object oriented programming
Procedural vs. object oriented programming
Haris Bin Zahid
 
Programming in c
Programming in c
indra Kishor
 
Command line arguments
Command line arguments
Ashok Raj
 
Why programming is important
Why programming is important
Aman Kumar
 
Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Technology Readiness Levels
Technology Readiness Levels
Dr NIkhill Alok Jha
 
C by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
Srichandan Sobhanayak
 
System programming vs application programming
System programming vs application programming
Inderbir Kaur Sandhu
 
Functions in C
Functions in C
Kamal Acharya
 
Dr K.Sree Latha
Dr K.Sree Latha
DrSreeLatha
 
Solved numerical problems of fourier series
Solved numerical problems of fourier series
Mohammad Imran
 
PPS Unit-1.pdf
PPS Unit-1.pdf
NenavathSurendhar
 
Data types in C
Data types in C
Satveer Mann
 
class and objects
class and objects
Payel Guria
 
Inheritance and polymorphism
Inheritance and polymorphism
baabtra.com - No. 1 supplier of quality freshers
 
Introduction to systems programming
Introduction to systems programming
Mukesh Tekwani
 
search strategies in artificial intelligence
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
Object Oriented Programming
Object Oriented Programming
Iqra khalil
 
NBA : CO PO Mapping
NBA : CO PO Mapping
Suhas Deshmukh
 
Data types in C
Data types in C
Tarun Sharma
 
Loops in C Programming Language
Loops in C Programming Language
Mahantesh Devoor
 
Structure of agents
Structure of agents
MANJULA_AP
 
Compare between pop and oop
Compare between pop and oop
Md Ibrahim Khalil
 
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
csea20222026
 

More Related Content

What's hot (20)

Command line arguments
Command line arguments
Ashok Raj
 
Why programming is important
Why programming is important
Aman Kumar
 
Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Technology Readiness Levels
Technology Readiness Levels
Dr NIkhill Alok Jha
 
C by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
Srichandan Sobhanayak
 
System programming vs application programming
System programming vs application programming
Inderbir Kaur Sandhu
 
Functions in C
Functions in C
Kamal Acharya
 
Dr K.Sree Latha
Dr K.Sree Latha
DrSreeLatha
 
Solved numerical problems of fourier series
Solved numerical problems of fourier series
Mohammad Imran
 
PPS Unit-1.pdf
PPS Unit-1.pdf
NenavathSurendhar
 
Data types in C
Data types in C
Satveer Mann
 
class and objects
class and objects
Payel Guria
 
Inheritance and polymorphism
Inheritance and polymorphism
baabtra.com - No. 1 supplier of quality freshers
 
Introduction to systems programming
Introduction to systems programming
Mukesh Tekwani
 
search strategies in artificial intelligence
search strategies in artificial intelligence
Hanif Ullah (Gold Medalist)
 
Object Oriented Programming
Object Oriented Programming
Iqra khalil
 
NBA : CO PO Mapping
NBA : CO PO Mapping
Suhas Deshmukh
 
Data types in C
Data types in C
Tarun Sharma
 
Loops in C Programming Language
Loops in C Programming Language
Mahantesh Devoor
 
Structure of agents
Structure of agents
MANJULA_AP
 

Similar to diffrence between procedure oriented programming & object oriented programming (pop vs oop) (20)

Compare between pop and oop
Compare between pop and oop
Md Ibrahim Khalil
 
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
csea20222026
 
Chapter 1
Chapter 1
Jasleen Kaur (Chandigarh University)
 
Abhiram
Abhiram
Abhiram Sadhu
 
Oop in c++ lecture 1
Oop in c++ lecture 1
zk75977
 
Object Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
Lec-01.pptx
Lec-01.pptx
MahdiHasan86
 
IET307 OOP - object oriented programming concepts.pptx
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
C++ notes.pdf
C++ notes.pdf
RajanBagale3
 
principle of oop’s in cpp
principle of oop’s in cpp
gourav kottawar
 
Oosd lecture unit 4 ppt introduction part
Oosd lecture unit 4 ppt introduction part
ManuSingh669370
 
Unit - I Fundamentals of Object Oriented Programming .pptx
Unit - I Fundamentals of Object Oriented Programming .pptx
tanmaynanaware20
 
Presentation c
Presentation c
Kunal Sharma
 
OOP ppt.pdf
OOP ppt.pdf
ArpitaJana28
 
OOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
OOPM - Introduction.pptx
OOPM - Introduction.pptx
amitabhaslideshare
 
Ch 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
Object Oriented Programming
Object Oriented Programming
AyushiDubey19
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 
OOP.pptx
OOP.pptx
kalyanibedekar
 
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
OOPs Concepts Like Diff Between OOP and POP,merits demarit and their imp conc...
csea20222026
 
Oop in c++ lecture 1
Oop in c++ lecture 1
zk75977
 
Object Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
IET307 OOP - object oriented programming concepts.pptx
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
principle of oop’s in cpp
principle of oop’s in cpp
gourav kottawar
 
Oosd lecture unit 4 ppt introduction part
Oosd lecture unit 4 ppt introduction part
ManuSingh669370
 
Unit - I Fundamentals of Object Oriented Programming .pptx
Unit - I Fundamentals of Object Oriented Programming .pptx
tanmaynanaware20
 
OOP Unit 1 - Foundation of Object- Oriented Programming
OOP Unit 1 - Foundation of Object- Oriented Programming
dkpawar
 
Ch 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
Object Oriented Programming
Object Oriented Programming
AyushiDubey19
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 
Ad

Recently uploaded (20)

20CE601- DESIGN OF STEEL STRUCTURES ,INTRODUCTION AND ALLOWABLE STRESS DESIGN
20CE601- DESIGN OF STEEL STRUCTURES ,INTRODUCTION AND ALLOWABLE STRESS DESIGN
gowthamvicky1
 
Great power lithium iron phosphate cells
Great power lithium iron phosphate cells
salmankhan835951
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
Cadastral Maps
Cadastral Maps
Google
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
Taqyea
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
Low Power SI Class E Power Amplifier and Rf Switch for Health Care
Low Power SI Class E Power Amplifier and Rf Switch for Health Care
ieijjournal
 
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
20CE601- DESIGN OF STEEL STRUCTURES ,INTRODUCTION AND ALLOWABLE STRESS DESIGN
20CE601- DESIGN OF STEEL STRUCTURES ,INTRODUCTION AND ALLOWABLE STRESS DESIGN
gowthamvicky1
 
Great power lithium iron phosphate cells
Great power lithium iron phosphate cells
salmankhan835951
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
Cadastral Maps
Cadastral Maps
Google
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(SMC毕业证书)原版定制
Taqyea
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
Low Power SI Class E Power Amplifier and Rf Switch for Health Care
Low Power SI Class E Power Amplifier and Rf Switch for Health Care
ieijjournal
 
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
Ad

diffrence between procedure oriented programming & object oriented programming (pop vs oop)

  • 1. Object oriented programming. Vs Procedural oriented programming. Prepared by: nihar joshi 2/10
  • 2.  In Pop Top down approach is use in program design.  In oop bottom up approach use in program design.  To add new data and function in pop is not so easy. example:C requires all the variables to be defined at the starting of a scope.  Oop provide easy way to add new data and function. we can add data member anywhere in program example:C++ allows the declaration of variable anywhere in the scope i.e. at time of its First use. 3/10
  • 3.  In pop No access specifiers are used. example: In structure all the members are public.  In oop Public,Private,protected Access specifiers are used. example: in class data is private & member function is public #include<iostream.h> class a { private: data public: member function }; 4/10
  • 4.  In POP, Most function uses Global data for sharing that can be accessed freely from function to function in the system.  In OOP, data can not move easily from function to function, it can be kept public or private so we can control the access of data. example: in class the data member declared in private mode are only access through it’s member function. 5/10
  • 5.  POP does not have any proper way for data hiding. example: in structure data are declared in public mode so it is less secure.  Oop provides data hiding, so it is more secure. example: data member declare in private are not accessible outside class. #Include<iostrean.h> class a { int a; void read(); public: Void update(); void write(); }; int main(){ a ob; ob.read(); //object can not access ,private member } 6/10
  • 6.  Pop program is divided into small parts called function.  Oop program is divided into small part called object.  In POP, Importance is not given to data but to functions as well as sequence of actions to be done  In OOP, Importance is given to the data rather than procedures or functions because it works as a real world. 7/10
  • 7.  In pop overloading is not possible.  In oop overloading is possible in the form of function overloading & operator overloading. example: overloaded add(). //declaration int add(int a,int b); int add(int a,int b,int c); double add(double x,double y); double add(double p,double q); 8/10
  • 8.  EXAMPLE OF POP: i. C ii. VB iii. FORTRAN iv. PASCAL  EXAMPLE OF OOP: i. C++, ii. JAVA, iii. VB.NET, iv. C#.NET. 9/10