SlideShare a Scribd company logo
1 of 9
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)

More Related Content

What's hot

1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
Jay Patel
 

What's hot (20)

Abstraction in c++ and Real Life Example of Abstraction in C++
Abstraction in c++ and Real Life Example of Abstraction in C++Abstraction in c++ and Real Life Example of Abstraction in C++
Abstraction in c++ and Real Life Example of Abstraction in C++
 
Compiler Design- Machine Independent Optimizations
Compiler Design- Machine Independent OptimizationsCompiler Design- Machine Independent Optimizations
Compiler Design- Machine Independent Optimizations
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Algorithm and c language
Algorithm and c languageAlgorithm and c language
Algorithm and c language
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
 
UNIT 10. Files and file handling in C
UNIT 10. Files and file handling in CUNIT 10. Files and file handling in C
UNIT 10. Files and file handling in C
 
DSA chapter 1
DSA chapter 1DSA chapter 1
DSA chapter 1
 
Compiler Chapter 1
Compiler Chapter 1Compiler Chapter 1
Compiler Chapter 1
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
File handling in C++
File handling in C++File handling in C++
File handling in C++
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Array within a class
Array within a classArray within a class
Array within a class
 
C tokens
C tokensC tokens
C tokens
 
Typecasting in c
Typecasting in cTypecasting in c
Typecasting in c
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
Assembler
AssemblerAssembler
Assembler
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
Constructor and destructor
Constructor  and  destructor Constructor  and  destructor
Constructor and destructor
 
Unit 3
Unit 3Unit 3
Unit 3
 
Polish Notation In Data Structure
Polish Notation In Data StructurePolish Notation In Data Structure
Polish Notation In Data Structure
 

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

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

Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1
 
Compare between pop and oop
Compare between pop and oopCompare between pop and oop
Compare between pop and oop
 
Bhushan Rathi
Bhushan RathiBhushan Rathi
Bhushan Rathi
 
Function overloading
Function overloadingFunction overloading
Function overloading
 
Chapter 04 object oriented programming
Chapter 04 object oriented programmingChapter 04 object oriented programming
Chapter 04 object oriented programming
 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
 
Oops in PHP By Nyros Developer
Oops in PHP By Nyros DeveloperOops in PHP By Nyros Developer
Oops in PHP By Nyros Developer
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
 
Function overloading ppt
Function overloading pptFunction overloading ppt
Function overloading ppt
 
Ak procedural vs oop
Ak procedural vs oopAk procedural vs oop
Ak procedural vs oop
 
4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT4 pillars of OOPS CONCEPT
4 pillars of OOPS CONCEPT
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questions
 
Object oriented programing
Object oriented programingObject oriented programing
Object oriented programing
 
Oop ppt
Oop pptOop ppt
Oop ppt
 
PCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docxPCCF-UNIT 2-1 new.docx
PCCF-UNIT 2-1 new.docx
 
2nd puc computer science chapter 8 function overloading
 2nd puc computer science chapter 8   function overloading 2nd puc computer science chapter 8   function overloading
2nd puc computer science chapter 8 function overloading
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
 
Abhiram
AbhiramAbhiram
Abhiram
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
Diving in OOP (Day 1) : Polymorphism and Inheritance (Early Binding/Compile T...
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

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