SlideShare a Scribd company logo
3
Most read
8
Most read
11
Most read
Procedure Oriented Programming
‱ It means “a set of procedures” which is a “set of
subroutines” or a “set of functions“.
‱ functions are called repeatedly in a program to execute
tasks performed by them. For example, a program may
involve collecting data from user (reading), performing
some kind of calculations on the collected data
(calculation), and finally displaying the result to the
user when requested (printing). All the 3 tasks of
reading, calculating and printing can be written in a
program with the help of 3 different functions which
performs these 3 different tasks.
Procedural vs. object oriented programming
A Real-World Example
‱ Let's say that you are working for a vehicle parts
manufacturer that needs to update it's online inventory
system. Your boss tells you to program two similar but
separate forms for a website, one form that processes
information about cars and one that does the same for
trucks.
‱ For cars, we will need to record the following information:
Color, Engine Size, Transmission Type, Number of doors
‱ For trucks, the information will be similar, but slightly
different. We need:
Color, Engine Size, Transmission Type, Cab Size, Towing
Capacity
Scenario 1
‱ 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,numberOfPassengers.
Scenario 2
‱ Instead of storing color in a database like we
previously did, for some strange reason our client
wants the color emailed to him.
‱ Procedural: We change three different forms:
cars, trucks, and buses to email the color to the
client rather than storing it in the database.
‱ OOP: We change the color method in the vehicle
class and because the car, truck, and bus classes
all extend (or inherit from, to put it another way)
the vehicle class, they are automatically updated.
Scenario 3
‱ We want to move from a generic car to specific
makes, for example: Nissan and Mazda.
‱ Procedural: We create a new form for each make,
repeating all of the code for generic car
information and adding the code specific to each
make.
‱ OOP: We extend the car class with a Nissan class
and a Mazda class and add methods for each set
of unique information for that car make.
Scenario 4
‱ We found a bug in the transmission type area
of our form and need to fix it.
‱ Procedural: We open and update each form.
‱ OOP: We fix the transmission Type method in
the vehicle class and the change perpetuates
in every class that inherits from it.
Procedural vs. Object-Oriented Programming
POP OOP
In POP, program is divided into small parts
called functions.
In OOP, program is divided into parts
called objects.
POP does not have any proper way for
hiding data so it is less secure.
OOP provides Data Hiding so
provides more security.
Example of POP are : C, VB, FORTRAN,
Pascal.
Example of OOP are : C++, JAVA, VB.NET,
C#.NET.
Procedural:
Top down design
Global data focused
Limited code reuse
Complex code
Object-Oriented:
Object focused design
Protected data
Code reuse
Complex design
VS.
Procedural vs. Object-Oriented Programming
Object Oriented Methodology is a certain
process through which software can be
developed. The goals of this methodology
are to achieve Software Systems that are
reliable, reusable, extensible; hence, more
useful in the long run. The methodology
achieves its goals by the help of a collection
of objects that communicate by exchanging
messages.
Objects
Towards a higher level of abstraction
‱ Hence, every object has 3 important features
– 1. Characteristics (e.g. Name, Designation, Job description etc.)
– 2. Responsibilities (e.g. drive bus, fly plane etc.) – these are assigned
on the basis of the object’s characteristics – A manager object would
have different responsibilities than a developer, since their job
descriptions (a characteristic) would be different:
– 3. Relationships with other objects (explained in detail later) – in order
to send requests/messages to each other, objects need to have some
relationship/connection. E.g. A bus driver needs to have
access/connection to a bus in order to drive it.
Classes
‱ Exercise: What class/category do these objects
belong to?
– Pencils, erasers, pens, rulers, sharpeners?
– Bananas, apples, oranges, peaches, grapes?
– Alice, Bob, Mark, Fahd, Ali, Brian?
‱ Guideline: A class usually represents a noun
Classes vs. Objects
some pictorial examples

More Related Content

PPTX
Principal of objected oriented programming
PPTX
Object Oriented programming - Introduction
PPTX
concept of oops
PPTX
Procedural programming
PPTX
1 unit (oops)
PPTX
Characteristics of OOPS
PPTX
OOP Unit 1 - Foundation of Object- Oriented Programming
PPTX
Principles and advantages of oop ppt
Principal of objected oriented programming
Object Oriented programming - Introduction
concept of oops
Procedural programming
1 unit (oops)
Characteristics of OOPS
OOP Unit 1 - Foundation of Object- Oriented Programming
Principles and advantages of oop ppt

What's hot (20)

PPTX
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
PPT
Coupling and cohesion
PPTX
Fundamental design concepts
PPTX
Operators in java
PPTX
MACRO PROCESSOR
DOC
Time and space complexity
PPTX
Phases of Compiler
PPTX
Constructor in java
PPT
ER-Model-ER Diagram
PPTX
Introduction to java
PDF
Java threads
PPTX
Language and Processors for Requirements Specification
PPTX
Constructor and Types of Constructors
PPTX
Cohesion and coupling
PPTX
Characteristics of oop
PPT
Basic concept of OOP's
PPT
Object oriented analysis
PPTX
Inheritance in java
PPTX
Lecture 14 run time environment
PPTX
PROCEDURAL ORIENTED PROGRAMMING VS OBJECT ORIENTED PROGRAMING
Coupling and cohesion
Fundamental design concepts
Operators in java
MACRO PROCESSOR
Time and space complexity
Phases of Compiler
Constructor in java
ER-Model-ER Diagram
Introduction to java
Java threads
Language and Processors for Requirements Specification
Constructor and Types of Constructors
Cohesion and coupling
Characteristics of oop
Basic concept of OOP's
Object oriented analysis
Inheritance in java
Lecture 14 run time environment
Ad

Viewers also liked (7)

PPT
Programming Paradigms
PPTX
structured programming
PPTX
diffrence between procedure oriented programming & object oriented programmin...
PPT
Object Oriented Programming Concepts
PPTX
Introduction to Object Oriented Programming
PPTX
Procedural programming
PPT
Oops ppt
Programming Paradigms
structured programming
diffrence between procedure oriented programming & object oriented programmin...
Object Oriented Programming Concepts
Introduction to Object Oriented Programming
Procedural programming
Oops ppt
Ad

Similar to Procedural vs. object oriented programming (20)

PPTX
Procedure oriented programming
PPTX
IET307 OOP - object oriented programming concepts.pptx
PDF
C++ notes.pdf
PPTX
Chapter1 introduction
PPTX
SE-IT JAVA LAB OOP CONCEPT
PPTX
POP vs OOP Introduction
PPTX
Object oriented programming 1 introduction to oop
PPTX
Oop in c++ lecture 1
PPTX
OOP-1.pptx
PPTX
OOPM - Introduction.pptx
PPTX
DOC-20210303-WA0017..pptx,coding stuff in c
PDF
Oop basic overview
PDF
OOP concepts with respected with Python
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
PPTX
Lecture No.1.pptx
PPTX
1.2 Procedural Vs Object Oriented Programming.pptx
PPTX
Advance oops concepts
PPTX
Object oriented programming in python
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
Procedure oriented programming
IET307 OOP - object oriented programming concepts.pptx
C++ notes.pdf
Chapter1 introduction
SE-IT JAVA LAB OOP CONCEPT
POP vs OOP Introduction
Object oriented programming 1 introduction to oop
Oop in c++ lecture 1
OOP-1.pptx
OOPM - Introduction.pptx
DOC-20210303-WA0017..pptx,coding stuff in c
Oop basic overview
OOP concepts with respected with Python
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
Lecture No.1.pptx
1.2 Procedural Vs Object Oriented Programming.pptx
Advance oops concepts
Object oriented programming in python
Ch 1 Introduction to Object Oriented Programming.pptx

More from Haris Bin Zahid (11)

PPTX
Object Oriented Programming
PPTX
General Programming Concept
PPTX
Abstraction and Encapsulation
PPTX
Abstract class and Interface
PPT
Recruiting
PPT
Foundations of Selection
PPT
Human Resource Planning and Job Analysis
PPT
Employee Rights and HR Communications
PPT
Equal Opportunity Employment
PPT
Fundamentals of HRM
PPT
Strategic Implications of a Dynamic HRM Environment
Object Oriented Programming
General Programming Concept
Abstraction and Encapsulation
Abstract class and Interface
Recruiting
Foundations of Selection
Human Resource Planning and Job Analysis
Employee Rights and HR Communications
Equal Opportunity Employment
Fundamentals of HRM
Strategic Implications of a Dynamic HRM Environment

Recently uploaded (20)

PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPT
Introduction Database Management System for Course Database
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
L1 - Introduction to python Backend.pptx
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Introduction to Artificial Intelligence
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Transform Your Business with a Software ERP System
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
Wondershare Filmora 15 Crack With Activation Key [2025
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Which alternative to Crystal Reports is best for small or large businesses.pdf
Introduction Database Management System for Course Database
Design an Analysis of Algorithms II-SECS-1021-03
Understanding Forklifts - TECH EHS Solution
L1 - Introduction to python Backend.pptx
VVF-Customer-Presentation2025-Ver1.9.pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Operating system designcfffgfgggggggvggggggggg
ISO 45001 Occupational Health and Safety Management System
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Introduction to Artificial Intelligence
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Transform Your Business with a Software ERP System
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PTS Company Brochure 2025 (1).pdf.......
How to Choose the Right IT Partner for Your Business in Malaysia
Navsoft: AI-Powered Business Solutions & Custom Software Development

Procedural vs. object oriented programming

  • 1. Procedure Oriented Programming ‱ It means “a set of procedures” which is a “set of subroutines” or a “set of functions“. ‱ functions are called repeatedly in a program to execute tasks performed by them. For example, a program may involve collecting data from user (reading), performing some kind of calculations on the collected data (calculation), and finally displaying the result to the user when requested (printing). All the 3 tasks of reading, calculating and printing can be written in a program with the help of 3 different functions which performs these 3 different tasks.
  • 3. A Real-World Example ‱ Let's say that you are working for a vehicle parts manufacturer that needs to update it's online inventory system. Your boss tells you to program two similar but separate forms for a website, one form that processes information about cars and one that does the same for trucks. ‱ For cars, we will need to record the following information: Color, Engine Size, Transmission Type, Number of doors ‱ For trucks, the information will be similar, but slightly different. We need: Color, Engine Size, Transmission Type, Cab Size, Towing Capacity
  • 4. Scenario 1 ‱ 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,numberOfPassengers.
  • 5. Scenario 2 ‱ Instead of storing color in a database like we previously did, for some strange reason our client wants the color emailed to him. ‱ Procedural: We change three different forms: cars, trucks, and buses to email the color to the client rather than storing it in the database. ‱ OOP: We change the color method in the vehicle class and because the car, truck, and bus classes all extend (or inherit from, to put it another way) the vehicle class, they are automatically updated.
  • 6. Scenario 3 ‱ We want to move from a generic car to specific makes, for example: Nissan and Mazda. ‱ Procedural: We create a new form for each make, repeating all of the code for generic car information and adding the code specific to each make. ‱ OOP: We extend the car class with a Nissan class and a Mazda class and add methods for each set of unique information for that car make.
  • 7. Scenario 4 ‱ We found a bug in the transmission type area of our form and need to fix it. ‱ Procedural: We open and update each form. ‱ OOP: We fix the transmission Type method in the vehicle class and the change perpetuates in every class that inherits from it.
  • 8. Procedural vs. Object-Oriented Programming POP OOP In POP, program is divided into small parts called functions. In OOP, program is divided into parts called objects. POP does not have any proper way for hiding data so it is less secure. OOP provides Data Hiding so provides more security. Example of POP are : C, VB, FORTRAN, Pascal. Example of OOP are : C++, JAVA, VB.NET, C#.NET.
  • 9. Procedural: Top down design Global data focused Limited code reuse Complex code Object-Oriented: Object focused design Protected data Code reuse Complex design VS. Procedural vs. Object-Oriented Programming
  • 10. Object Oriented Methodology is a certain process through which software can be developed. The goals of this methodology are to achieve Software Systems that are reliable, reusable, extensible; hence, more useful in the long run. The methodology achieves its goals by the help of a collection of objects that communicate by exchanging messages.
  • 11. Objects Towards a higher level of abstraction ‱ Hence, every object has 3 important features – 1. Characteristics (e.g. Name, Designation, Job description etc.) – 2. Responsibilities (e.g. drive bus, fly plane etc.) – these are assigned on the basis of the object’s characteristics – A manager object would have different responsibilities than a developer, since their job descriptions (a characteristic) would be different: – 3. Relationships with other objects (explained in detail later) – in order to send requests/messages to each other, objects need to have some relationship/connection. E.g. A bus driver needs to have access/connection to a bus in order to drive it.
  • 12. Classes ‱ Exercise: What class/category do these objects belong to? – Pencils, erasers, pens, rulers, sharpeners? – Bananas, apples, oranges, peaches, grapes? – Alice, Bob, Mark, Fahd, Ali, Brian? ‱ Guideline: A class usually represents a noun
  • 13. Classes vs. Objects some pictorial examples

Editor's Notes

  • #12: Must follow the Required Content structure Clear and concise purpose Should fit into the overall training program Determine level of training and adhere to it throughout Beginner, Intermediate, Advanced Introduce concepts in an easy to follow manner Provide text and audio Product trainings should include hands-on video examples
  • #13: Possible Answers to the Exercises: Stencils Fruits People/Humans/Names