SlideShare a Scribd company logo
Presented by :
• Kunal N. Sharma
• Shyam D. Hathaliya
Presentation on POP vs OOP
Outline:
•Procedure oriented programming language.
•Introduction to pop
•Characteristics
•Advantages
•Disadvantages
•Object Oriented programming language.
•Introduction to OOP
•Concepts of OOP
•Advantages
•Disadvantages
•Difference between OOP vs. POP.
Presentation c
What is procedural oriented programming?
•computer programming language that specifies a series of well-
structured steps and procedures within its programming context to
compose a program.
•It contains a systematic order of statements, functions and
commands to complete a computational task or program.
• In the procedure oriented approach, the problem is viewed as
a sequence of things to be done such as reading, calculating and
printing.
Some characteristics of Procedure Oriented
Programming:
•Large programs are divided into smaller programs known
as functions.
•Most of the functions share
global data.
•Data can easily flow from
one function to another.
•Functions transform data from one form to another.
•Employs top-down approach in program design.
Advantages of procedural oriented programming:
•Allows quick completion. It is faster than oop.
•It is good for general purpose programming.
•It has portable source code-use different compiler to target
Different CPUs.
•Large reference is available on well-tired tested algorithms
No need to reinvent the wheel.
•Requires less memory space.
Disadvantages of procedural oriented programming:
•It is difficult to relate with the real world objects.
•The codes are difficult to maintain, if code grow large.
•It does not have automatic memory management like java.
•There is no security of data.
•Difficult to modify old codes.
•There are no access specifies.
Presentation c
What Object-Oriented Programming?
• Object-oriented programming is centred on
creating objects rather than procedures/
functions.
• Objects are a melding of data and procedures
that manipulate that data.
• Data in an object are known as attributes.
• Procedures/functions in an object are known
as methods.
Presentation c
• Object
• Class
• Message
• Basic Principles of Object Orientation
• Abstraction
• Encapsulation
• Inheritance
• Polymorphism
• Interface and Abstract Class
Concepts of object oriented programming:
• Informally, an object represents an entity, either physical,
conceptual, or software.
– Physical entity
– Conceptual entity
– Software entity
Truck
Chemical
Process
Linked List
• The state of an object normally changes over time.
Name: J Clark
Employee ID: 567138
HireDate: 07/25/1991
Status: Tenured
Discipline: Finance
MaxLoad: 3
Name: J Clark
Employee ID: 567138
Date Hired: July 25, 1991
Status: Tenured
Discipline: Finance
Maximum Course Load: 3 classes
Professor Clark
Professor Clark
• Behavior determines how an object acts and reacts.
• The visible behavior of an object is modeled by the set of
messages it can respond to (operations the object can perform).
Professor Clark’s behavior
Submit Final Grades
Accept Course Offering
Take Sabbatical
Maximum Course Load: 3 classes TakeSabbatical()
Professor Clark
Professor Clark
Modularity is a fundamental aspect of all
successful large programs.
 Abstraction
 Emphasizes relevant characteristics.
 Suppresses other characteristics
Data Abstraction:
BriefCase
- Capacity
- Weight
+ open()
+ close()
• Encapsulation means to design, produce, and
describe software so that it can be easily used
without knowing the details of how it works.
• Also known as information hiding
Interface
Implementation details which
are invisible for client
Information which can’t be
accessed by client
Client Deposit()
Withdraw()
Transfer()
Balance
insterestYTD
Owner
Account_number
Deposit() {…}
Withdraw() {…}
Transfer() {…}
• Inheritance —a way of organizing classes
• Term comes from inheritance of traits like eye color, hair color,
and so on.
• Classes with properties in common can be grouped so that
their common properties are only defined once.
• Is an “is a kind of” relationship
Vehicle
Automobile Motorcycle Bus
Sedan Sports Car School Bus Luxury Bus
Polymorphism:
•The word polymorphism comes from Greek and means having
several different forms. This is one of the essential concepts of
object-oriented programming.
• Where inheritance is related to classes and (their hierarchy),
polymorphism is related to object methods.
•Types of polymorphism :
Overloading polymorphism
Parametric polymorphism
Advantages of Object-Oriented languages
include:
•Ease of management.
•Understand ability.
•Re-usability.
•Improved software-development productivity.
•Improved software maintainability.
•Faster development.
•Lower cost of development.
•Higher-quality software.
•The disadvantages of Object-Oriented
languages include:
•Over-generalization.
•Programs that are built using this language tend to take
longer to initially create.
•Slower program.
Object oriented programming.
Vs
Procedural oriented programming.
OOP POP
Centres in data types (classes,
prototypes)
Functions.
Data scope encapsulated data global data
What is first
data types then algorithms algorithms then data types
Subroutines are called
methods functions
Who access who
data is accessed by code, i.e.
ObjectInstance.getMeARando
mNumber();
code is accessed by data, i.e.
random_number =
getMeARandomNumber();
Have global data
No, but objects can have
public members
Yes, but functions can have
private variables
Data is called
member variable
Any Questions?

More Related Content

PPT
Software re engineering
Indu Sharma Bhardwaj
 
PPTX
Programming Languages / Translators
Project Student
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PPTX
Software re engineering
deshpandeamrut
 
PDF
Software engineering mca
Aman Adhikari
 
PDF
Numerical and Statistical Methods (Question Paper) [April – 2017 | 75:25 Patt...
Mumbai B.Sc.IT Study
 
PDF
C++ chapter 1
jasvinder162
 
PDF
Spm software effort estimation
Kanchana Devi
 
Software re engineering
Indu Sharma Bhardwaj
 
Programming Languages / Translators
Project Student
 
Basic concepts of object oriented programming
Sachin Sharma
 
Software re engineering
deshpandeamrut
 
Software engineering mca
Aman Adhikari
 
Numerical and Statistical Methods (Question Paper) [April – 2017 | 75:25 Patt...
Mumbai B.Sc.IT Study
 
C++ chapter 1
jasvinder162
 
Spm software effort estimation
Kanchana Devi
 

What's hot (20)

PDF
Keywords, identifiers ,datatypes in C++
Ankur Pandey
 
PPT
Sdlc model
Dhilsath Fathima
 
PPT
FUNCTIONS IN c++ PPT
03062679929
 
PPT
Chapter 3 - Variables and Constants
mshellman
 
PPTX
Introduction to Software Engineering
Saqib Raza
 
PPTX
Securing broken access controls on Oracle E-business suite
Suraj Khetani
 
PDF
Software Architecture: views and viewpoints
Henry Muccini
 
PPTX
S.D.L.C (Software Development Life Cycle.)
Jayesh Buwa
 
PPTX
Cocomo model
Baskarkncet
 
PDF
Polymorphism
Raffaele Doti
 
PPTX
Principles and advantages of oop ppt
daxesh chauhan
 
PDF
Requirement Engineering
Jonathan Christian
 
PPT
Software development slides
iarthur
 
PPTX
Program Logic and Design
Froilan Cantillo
 
PDF
Software Process Models
Atul Karmyal
 
DOC
Indhu G_M&AT
Indhu Ella
 
PPTX
Software quality
Sara Mehmood
 
PPTX
C++ string
Dheenadayalan18
 
PPTX
9 subprograms
Munawar Ahmed
 
Keywords, identifiers ,datatypes in C++
Ankur Pandey
 
Sdlc model
Dhilsath Fathima
 
FUNCTIONS IN c++ PPT
03062679929
 
Chapter 3 - Variables and Constants
mshellman
 
Introduction to Software Engineering
Saqib Raza
 
Securing broken access controls on Oracle E-business suite
Suraj Khetani
 
Software Architecture: views and viewpoints
Henry Muccini
 
S.D.L.C (Software Development Life Cycle.)
Jayesh Buwa
 
Cocomo model
Baskarkncet
 
Polymorphism
Raffaele Doti
 
Principles and advantages of oop ppt
daxesh chauhan
 
Requirement Engineering
Jonathan Christian
 
Software development slides
iarthur
 
Program Logic and Design
Froilan Cantillo
 
Software Process Models
Atul Karmyal
 
Indhu G_M&AT
Indhu Ella
 
Software quality
Sara Mehmood
 
C++ string
Dheenadayalan18
 
9 subprograms
Munawar Ahmed
 
Ad

Similar to Presentation c (20)

PPTX
OOP.pptx
kalyanibedekar
 
PPTX
Object Oriented programming - Introduction
Madishetty Prathibha
 
PPTX
Introduction to oop with c++
Shruti Patel
 
PPTX
Object Oriented Programming using C++.pptx
parveen837153
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
principle of oop’s in cpp
gourav kottawar
 
PPTX
POP vs OOP Introduction
Hashni T
 
PPTX
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
PPTX
OOP-1.pptx
iansebuabeh
 
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
PDF
OOP ppt.pdf
ArpitaJana28
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
PDF
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
PPTX
Unit 1 OOSE
ChhayaShelake
 
PPTX
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
PDF
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
PPT
2 Object Oriented Programming
Praveen M Jigajinni
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
OOP.pptx
kalyanibedekar
 
Object Oriented programming - Introduction
Madishetty Prathibha
 
Introduction to oop with c++
Shruti Patel
 
Object Oriented Programming using C++.pptx
parveen837153
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
principle of oop’s in cpp
gourav kottawar
 
POP vs OOP Introduction
Hashni T
 
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
OOP-1.pptx
iansebuabeh
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
OOP ppt.pdf
ArpitaJana28
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Unit 1 OOSE
ChhayaShelake
 
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Principles of OOPs.pptx
LakshyaChauhan21
 
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
2 Object Oriented Programming
Praveen M Jigajinni
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
Ad

Recently uploaded (20)

PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 

Presentation c

  • 1. Presented by : • Kunal N. Sharma • Shyam D. Hathaliya Presentation on POP vs OOP
  • 2. Outline: •Procedure oriented programming language. •Introduction to pop •Characteristics •Advantages •Disadvantages •Object Oriented programming language. •Introduction to OOP •Concepts of OOP •Advantages •Disadvantages •Difference between OOP vs. POP.
  • 4. What is procedural oriented programming? •computer programming language that specifies a series of well- structured steps and procedures within its programming context to compose a program. •It contains a systematic order of statements, functions and commands to complete a computational task or program. • In the procedure oriented approach, the problem is viewed as a sequence of things to be done such as reading, calculating and printing.
  • 5. Some characteristics of Procedure Oriented Programming: •Large programs are divided into smaller programs known as functions. •Most of the functions share global data. •Data can easily flow from one function to another. •Functions transform data from one form to another. •Employs top-down approach in program design.
  • 6. Advantages of procedural oriented programming: •Allows quick completion. It is faster than oop. •It is good for general purpose programming. •It has portable source code-use different compiler to target Different CPUs. •Large reference is available on well-tired tested algorithms No need to reinvent the wheel. •Requires less memory space.
  • 7. Disadvantages of procedural oriented programming: •It is difficult to relate with the real world objects. •The codes are difficult to maintain, if code grow large. •It does not have automatic memory management like java. •There is no security of data. •Difficult to modify old codes. •There are no access specifies.
  • 9. What Object-Oriented Programming? • Object-oriented programming is centred on creating objects rather than procedures/ functions. • Objects are a melding of data and procedures that manipulate that data. • Data in an object are known as attributes. • Procedures/functions in an object are known as methods.
  • 11. • Object • Class • Message • Basic Principles of Object Orientation • Abstraction • Encapsulation • Inheritance • Polymorphism • Interface and Abstract Class Concepts of object oriented programming:
  • 12. • Informally, an object represents an entity, either physical, conceptual, or software. – Physical entity – Conceptual entity – Software entity Truck Chemical Process Linked List
  • 13. • The state of an object normally changes over time. Name: J Clark Employee ID: 567138 HireDate: 07/25/1991 Status: Tenured Discipline: Finance MaxLoad: 3 Name: J Clark Employee ID: 567138 Date Hired: July 25, 1991 Status: Tenured Discipline: Finance Maximum Course Load: 3 classes Professor Clark Professor Clark
  • 14. • Behavior determines how an object acts and reacts. • The visible behavior of an object is modeled by the set of messages it can respond to (operations the object can perform). Professor Clark’s behavior Submit Final Grades Accept Course Offering Take Sabbatical Maximum Course Load: 3 classes TakeSabbatical() Professor Clark Professor Clark
  • 15. Modularity is a fundamental aspect of all successful large programs.  Abstraction  Emphasizes relevant characteristics.  Suppresses other characteristics Data Abstraction: BriefCase - Capacity - Weight + open() + close()
  • 16. • Encapsulation means to design, produce, and describe software so that it can be easily used without knowing the details of how it works. • Also known as information hiding
  • 17. Interface Implementation details which are invisible for client Information which can’t be accessed by client Client Deposit() Withdraw() Transfer() Balance insterestYTD Owner Account_number Deposit() {…} Withdraw() {…} Transfer() {…}
  • 18. • Inheritance —a way of organizing classes • Term comes from inheritance of traits like eye color, hair color, and so on. • Classes with properties in common can be grouped so that their common properties are only defined once. • Is an “is a kind of” relationship
  • 19. Vehicle Automobile Motorcycle Bus Sedan Sports Car School Bus Luxury Bus
  • 20. Polymorphism: •The word polymorphism comes from Greek and means having several different forms. This is one of the essential concepts of object-oriented programming. • Where inheritance is related to classes and (their hierarchy), polymorphism is related to object methods. •Types of polymorphism : Overloading polymorphism Parametric polymorphism
  • 21. Advantages of Object-Oriented languages include: •Ease of management. •Understand ability. •Re-usability. •Improved software-development productivity. •Improved software maintainability. •Faster development. •Lower cost of development. •Higher-quality software.
  • 22. •The disadvantages of Object-Oriented languages include: •Over-generalization. •Programs that are built using this language tend to take longer to initially create. •Slower program.
  • 24. OOP POP Centres in data types (classes, prototypes) Functions. Data scope encapsulated data global data What is first data types then algorithms algorithms then data types Subroutines are called methods functions Who access who data is accessed by code, i.e. ObjectInstance.getMeARando mNumber(); code is accessed by data, i.e. random_number = getMeARandomNumber(); Have global data No, but objects can have public members Yes, but functions can have private variables Data is called member variable