SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
TAE 2
Subject: Object Oriented Programming
Topic: Procedure Oriented Programming
vs.
Object Oriented Programming
Guided by:
Ms. Diksha Bhoyar
Group No : 06
(SCOB48) Uttam Singh
Procedure Oriented
Programming
Object Oriented
Programming
 Program is divided into parts called
objects.
 OOP has access specifiers named
Public, Private, Protected, etc.
 Provides Data Hiding so provides
more security.
 In OOP, overloading is possible in
the form of Function Overloading
and Operator Overloading.
 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 of OOP are : C++, JAVA,
VB.NET, C#.NET.
 In POP, program is divided into small
parts called functions.
 POP does not have any access specifiers
(I.e) by default it is public only.
 POP does not have any proper way for
hiding data so it is less secure.
 In POP, Overloading is not possible.
 In POP, Most function uses Global data
for sharing that can be accessed freely
from function to function in the system.
 Example of POP are : C, VB, FORTRAN,
Pascal.
REAL TIME EXAMPES OF POPS AND
OOPS WITH SOME SITUATION
 Suppose that we suddenly need to add a bus form, that
records the following information:
Color, Engine Size, Transmission Type
Number of passengers
 Procedural: We need to recreate the entire form, repeating
the code for Color, Engine Size, and Transmission Type.
 OOP: We simply extend the vehicle class with a bus class and
add the method, number Of Passengers.
SITUATION 2
 If the client in vehicle company wants to change
the colors of all the vehicles for some reason.
 Procedural: We have to change three different
forms: cars, trucks, and buses color differently
one by one for the client as its follows procedure
step by step .
 OOP: We change the color method in the vehicle
class and because the car, truck, and bus classes
all are inherited from one derived class they are
automatically updated.
Procedure Oriented
Programming
Object Oriented
Programming
Advantages
 It is easy to understand.
 It models the real world(i.e) it can
be easily extended.
 It offers reusability (i.e) already
created classes can be reuse without
having to write them again.
 These are easier to test and
maintain.
Disadvantages
 It needs a proper planning and
proper designing
 Program designing is sometime
tricky.
Advantages
 Its relative simplicity, and ease of
implementation of compilers and
interpreters.
 An easier way to keep track of program
flow.
 Needs only less memory.
Disadvantages
 Data is exposed to whole program, so no
security for data.
 The does not offer the ability to re-use
the same code at different places.
 Difficult to relate with real world objects.
 Difficult to create new data types reduces
extensibility.
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
Ad

Recommended

C++ OOPS Concept
C++ OOPS Concept
Boopathi K
 
File handling in Python
File handling in Python
Megha V
 
Functions in C
Functions in C
Kamal Acharya
 
Classes, objects in JAVA
Classes, objects in JAVA
Abhilash Nair
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVA
VINOTH R
 
Arrays in Java
Arrays in Java
Naz Abdalla
 
Java Data Types
Java Data Types
Spotle.ai
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Procedural programming
Procedural programming
Ankit92Chitnavis
 
Linked list
Linked list
akshat360
 
Java Tokens
Java Tokens
Madishetty Prathibha
 
Threads in JAVA
Threads in JAVA
Haldia Institute of Technology
 
Deadlock Prevention
Deadlock Prevention
prachi mewara
 
Introduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Java package
Java package
CS_GDRCST
 
Doubly Linked List
Doubly Linked List
Ninad Mankar
 
Data types in C
Data types in C
Tarun Sharma
 
Polymorphism in c++(ppt)
Polymorphism in c++(ppt)
Sanjit Shaw
 
Presentation on Function in C Programming
Presentation on Function in C Programming
Shuvongkor Barman
 
Applets in java
Applets in java
Wani Zahoor
 
Python programming : Control statements
Python programming : Control statements
Emertxe Information Technologies Pvt Ltd
 
Basic concepts of object oriented programming
Basic concepts of object oriented programming
Sachin Sharma
 
Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Object oriented programming c++
Object oriented programming c++
Ankur Pandey
 
Life cycle-of-a-thread
Life cycle-of-a-thread
javaicon
 
Methods in java
Methods in java
chauhankapil
 
OOPS In JAVA.pptx
OOPS In JAVA.pptx
Sachin33417
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
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
 
Compare between pop and oop
Compare between pop and oop
Md Ibrahim Khalil
 

More Related Content

What's hot (20)

Procedural programming
Procedural programming
Ankit92Chitnavis
 
Linked list
Linked list
akshat360
 
Java Tokens
Java Tokens
Madishetty Prathibha
 
Threads in JAVA
Threads in JAVA
Haldia Institute of Technology
 
Deadlock Prevention
Deadlock Prevention
prachi mewara
 
Introduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Java package
Java package
CS_GDRCST
 
Doubly Linked List
Doubly Linked List
Ninad Mankar
 
Data types in C
Data types in C
Tarun Sharma
 
Polymorphism in c++(ppt)
Polymorphism in c++(ppt)
Sanjit Shaw
 
Presentation on Function in C Programming
Presentation on Function in C Programming
Shuvongkor Barman
 
Applets in java
Applets in java
Wani Zahoor
 
Python programming : Control statements
Python programming : Control statements
Emertxe Information Technologies Pvt Ltd
 
Basic concepts of object oriented programming
Basic concepts of object oriented programming
Sachin Sharma
 
Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Object oriented programming c++
Object oriented programming c++
Ankur Pandey
 
Life cycle-of-a-thread
Life cycle-of-a-thread
javaicon
 
Methods in java
Methods in java
chauhankapil
 
OOPS In JAVA.pptx
OOPS In JAVA.pptx
Sachin33417
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Introduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Java package
Java package
CS_GDRCST
 
Doubly Linked List
Doubly Linked List
Ninad Mankar
 
Polymorphism in c++(ppt)
Polymorphism in c++(ppt)
Sanjit Shaw
 
Presentation on Function in C Programming
Presentation on Function in C Programming
Shuvongkor Barman
 
Basic concepts of object oriented programming
Basic concepts of object oriented programming
Sachin Sharma
 
Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Object oriented programming c++
Object oriented programming c++
Ankur Pandey
 
Life cycle-of-a-thread
Life cycle-of-a-thread
javaicon
 
OOPS In JAVA.pptx
OOPS In JAVA.pptx
Sachin33417
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 

Similar to PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING (20)

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
 
Compare between pop and oop
Compare between pop and oop
Md Ibrahim Khalil
 
Object Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
OOPM - Introduction.pptx
OOPM - Introduction.pptx
amitabhaslideshare
 
Chapter 1
Chapter 1
Jasleen Kaur (Chandigarh University)
 
Procedural vs. object oriented programming
Procedural vs. object oriented programming
Haris Bin Zahid
 
Procedure oriented programming
Procedure oriented programming
MrShahbazRafiq
 
diffrence between procedure oriented programming & object oriented programmin...
diffrence between procedure oriented programming & object oriented programmin...
nihar joshi
 
Presentation c
Presentation c
Kunal Sharma
 
C++ notes.pdf
C++ notes.pdf
RajanBagale3
 
slidesgo-comparative-analysis-of-procedural-programming-and-object-oriented-p...
slidesgo-comparative-analysis-of-procedural-programming-and-object-oriented-p...
RollyBoyRyanPionilla
 
IET307 OOP - object oriented programming concepts.pptx
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
OOP-1.pptx
OOP-1.pptx
iansebuabeh
 
OOP.pptx
OOP.pptx
kalyanibedekar
 
principle of oop’s in cpp
principle of oop’s in cpp
gourav kottawar
 
Abhiram
Abhiram
Abhiram Sadhu
 
object oriented programming concepts and explanation
object oriented programming concepts and explanation
SATYA136395
 
Oop basic overview
Oop basic overview
Deborah Akuoko
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
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
 
Object Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
Procedural vs. object oriented programming
Procedural vs. object oriented programming
Haris Bin Zahid
 
Procedure oriented programming
Procedure oriented programming
MrShahbazRafiq
 
diffrence between procedure oriented programming & object oriented programmin...
diffrence between procedure oriented programming & object oriented programmin...
nihar joshi
 
slidesgo-comparative-analysis-of-procedural-programming-and-object-oriented-p...
slidesgo-comparative-analysis-of-procedural-programming-and-object-oriented-p...
RollyBoyRyanPionilla
 
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
 
object oriented programming concepts and explanation
object oriented programming concepts and explanation
SATYA136395
 
1.2 Need of Object-Oriented Programming.pdf
1.2 Need of Object-Oriented Programming.pdf
VikasNirgude2
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Ad

Recently uploaded (20)

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
 
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
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
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
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
ijab2
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
3. What is the principles of Teamwork_Module_V1.0.ppt
3. What is the principles of Teamwork_Module_V1.0.ppt
engaash9
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
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
 
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
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
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
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
ijab2
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
3. What is the principles of Teamwork_Module_V1.0.ppt
3. What is the principles of Teamwork_Module_V1.0.ppt
engaash9
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Ad

PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING

  • 1. TAE 2 Subject: Object Oriented Programming Topic: Procedure Oriented Programming vs. Object Oriented Programming Guided by: Ms. Diksha Bhoyar Group No : 06 (SCOB48) Uttam Singh
  • 2. Procedure Oriented Programming Object Oriented Programming  Program is divided into parts called objects.  OOP has access specifiers named Public, Private, Protected, etc.  Provides Data Hiding so provides more security.  In OOP, overloading is possible in the form of Function Overloading and Operator Overloading.  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 of OOP are : C++, JAVA, VB.NET, C#.NET.  In POP, program is divided into small parts called functions.  POP does not have any access specifiers (I.e) by default it is public only.  POP does not have any proper way for hiding data so it is less secure.  In POP, Overloading is not possible.  In POP, Most function uses Global data for sharing that can be accessed freely from function to function in the system.  Example of POP are : C, VB, FORTRAN, Pascal.
  • 3. REAL TIME EXAMPES OF POPS AND OOPS WITH SOME SITUATION  Suppose that we suddenly need to add a bus form, that records the following information: Color, Engine Size, Transmission Type Number of passengers  Procedural: We need to recreate the entire form, repeating the code for Color, Engine Size, and Transmission Type.  OOP: We simply extend the vehicle class with a bus class and add the method, number Of Passengers.
  • 4. SITUATION 2  If the client in vehicle company wants to change the colors of all the vehicles for some reason.  Procedural: We have to change three different forms: cars, trucks, and buses color differently one by one for the client as its follows procedure step by step .  OOP: We change the color method in the vehicle class and because the car, truck, and bus classes all are inherited from one derived class they are automatically updated.
  • 5. Procedure Oriented Programming Object Oriented Programming Advantages  It is easy to understand.  It models the real world(i.e) it can be easily extended.  It offers reusability (i.e) already created classes can be reuse without having to write them again.  These are easier to test and maintain. Disadvantages  It needs a proper planning and proper designing  Program designing is sometime tricky. Advantages  Its relative simplicity, and ease of implementation of compilers and interpreters.  An easier way to keep track of program flow.  Needs only less memory. Disadvantages  Data is exposed to whole program, so no security for data.  The does not offer the ability to re-use the same code at different places.  Difficult to relate with real world objects.  Difficult to create new data types reduces extensibility.