SlideShare a Scribd company logo
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Subject- Object Oriented Programming (CO212)
Unit 1 – Fundamentals of OOP
Topic – 1.3 Object Oriented Programming Paradigm,
Basic Concepts of Object-Oriented Programming
Prof.V.N.Nirgude
Assistant Professor
E-mail :
nirgudevikascomp@sanjivani.org.in
Contact No: 9975240215
OOP paradigm
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 2
In OOP paradigm,
• Emphasis is on objects rather than procedure.
• Programs are divided into entities known as classes of objects.
• Data Structures are designed such that they characterize objects.
• Functions that operate on data are tied together in a class.
• Data is hidden and cannot be accessed by external functions.
• Objects communicate with each other through functions.
• New data and functions can be easily added whenever necessary.
• Follows bottom up approach in program design.
Organization of Data and Functions in OOP
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 3
Basic Concepts in OOP
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 4
• Object
• Class
• Message Passing
• Abstraction
• Encapsulation
• Inheritance
• Polymorphism
• Dynamic Binding
Object
• Object is a basic run-time entity of a class.
•Object is also called as an instance of a class.
•It may represent a person, a place or any item that the program
must handle.
• Example
Representation of an object
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 5
Class
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 6
• A class defines the type of an object.
• A class is a prototype/template or a blue print of an object.
• A class contains data and functions.
• Any number of objects can be created for a single class.
•Wecan create object of a class using syntax,
ClassName objectName;
•Here ClassName is a class which is already defined and objectName is any user-defined
name.
• For example, if Student is a class,
Student neha,pratik;
In above example, neha and pratik are objects of class Student.
Message Passing
•A message passing is a request for execution of a procedure or to invoke a
function in the receiving object that generates the desiredresult.
•Message passing involves specifying the name of the object, the name of the
function i.e. message or the information to be sent.
• Objects can communicate with each other by passing messages same as people
pass messages to each other.
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 7
Abstraction
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 8
features
as a list of
relies on the
•Abstraction refers to the representation of necessary
without including details.
•Classes use the concept of abstraction and are defined
abstract data and functions to operate on these attributes.
• Data abstraction is a programming technique that
separation of interface and implementation.
Abstraction
• When you press a key on your keyboard
the character appears on the screen, you
need to know only this, but How exactly it
works electronically, is not needed.
• Another Example is when you use the remote
control of your TV, you do not bother about
how pressing a key in
the remote changes the channel on the TV.
Youjust know that pressing
the + volume button will increase the
volume.
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 9
Encapsulation
• In simple words, “Encapsulation is a process of
members and member functions into a single unit”.
binding data
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 10
Encapsulation
•The data is not accessible to the outside world, and only those functions
which are wrapped in the class can access it.
• This insulation of the data from direct access by the outside program is
called data hiding or information hiding.
• A Class is the best example of encapsulation.
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 11
Inheritance
•Inheritance is the process by which object
of one class acquire the properties of
another class.
•In OOP, the concept of inheritance
provides the idea of reusability.
•This means that we can add additional
features to an existing class without
modifying it.
•Through effective use of inheritance,
you can save a lot of time in your
programming and also reduce error.
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 12
Polymorphism
•Polymorphism is a Greek term which means
than one form.
•In polymorphism an operation may show
different instances.
the ability to take more
different behavior in
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 13
Polymorphism
•For example, + is used to make sum of two numbers as well as it is used
to combine two strings.
• This is known as operator overloading because same operator may
behave differently on different instances.
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 14
Polymorphism
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 15
• Same way functions can be overloaded.
•For example, sum()function may
arguments etc.
- i.e. sum (5, 7) or sum (4, 6, 8).
take two arguments or three
Dynamic Binding
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 16
•Dynamic Binding is the process of linking of the code
associated with a procedure call at the run-time”.
• Dynamic binding means that the code associated with a
given procedure call is not known until the time of the call
at run time.
Thank You..
DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 17

More Related Content

PPTX
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
PPTX
Introduction to C++
PPTX
Chapter - 1.pptx
PPTX
Basic concept of oops
PPTX
2-oops-concepts_about_c++_btech_cse.pptx
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPTX
Chapter1 introduction
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
Introduction to C++
Chapter - 1.pptx
Basic concept of oops
2-oops-concepts_about_c++_btech_cse.pptx
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
Chapter1 introduction

Similar to 1.3 Object Oriented Programming Paradigm, Basic Concepts of Object-Oriented Programming.pdf (20)

PPTX
POP vs OOP Introduction
PPT
Object oriented programming
PPTX
Object oriented programming 6 oop with c++
PPTX
C++ & Data Structure - Unit - first.pptx
PDF
Computer_Programming_Part_II_Segment_01.pdf
PPTX
IET307 OOP - object oriented programming concepts.pptx
PDF
C++ chapter 1
PPTX
oop.pptx
PDF
Object oriented concepts
PPT
Basic concept of OOP's
DOC
Chapter1
DOCX
Cs6301 programming and datastactures
PPTX
Object Oriented Programming Concepts Using C++
PPTX
principle of oop’s in cpp
PDF
Object oriented programming C++
PPTX
OOSD1-unit1_1_16_09.pptx
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
PPTX
Object Oriented Programming using C++.pptx
PPTX
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
POP vs OOP Introduction
Object oriented programming
Object oriented programming 6 oop with c++
C++ & Data Structure - Unit - first.pptx
Computer_Programming_Part_II_Segment_01.pdf
IET307 OOP - object oriented programming concepts.pptx
C++ chapter 1
oop.pptx
Object oriented concepts
Basic concept of OOP's
Chapter1
Cs6301 programming and datastactures
Object Oriented Programming Concepts Using C++
principle of oop’s in cpp
Object oriented programming C++
OOSD1-unit1_1_16_09.pptx
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
Object Oriented Programming using C++.pptx
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
Ad

More from VikasNirgude2 (20)

PDF
2.8 Constructor and Destructor in Derived Class.pdf
PDF
4.2 Class Template, Template and Inheritance.pdf
PDF
Function Templates,Overlaoding Function Templates.pdf
PDF
Introduction to Inheritance and Its concepts
PDF
Data Conversion and Type Casting Concepts
PDF
Operator Overloading Introduction and Concept of OV
PDF
1.11 Constructors and Destructors....pdf
PDF
1.10 Functions in C++,call by value .pdf
PDF
1.9 Class,Object,Class Scope,Accessing Class members and Controlling access t...
PDF
1.7 Arrays in C++ and its detail........pdf
PDF
1.6 Control Structures in C++ .......pdf
PDF
1.5 Data Types in C++ and Its Details.pdf
PDF
C++ programming Basic and Operators of C++
PDF
1.2 Need of Object-Oriented Programming.pdf
PDF
1.1 Introduction to procedural, modular, object-oriented and generic programm...
PDF
B Tree, Introduction ,example,Splay tree
PPT
Tree-introduction ,Definition, Types of BT
PPTX
Double Hashing.pptx
PPTX
closed hashing.pptx
PPTX
Collision resolution.pptx
2.8 Constructor and Destructor in Derived Class.pdf
4.2 Class Template, Template and Inheritance.pdf
Function Templates,Overlaoding Function Templates.pdf
Introduction to Inheritance and Its concepts
Data Conversion and Type Casting Concepts
Operator Overloading Introduction and Concept of OV
1.11 Constructors and Destructors....pdf
1.10 Functions in C++,call by value .pdf
1.9 Class,Object,Class Scope,Accessing Class members and Controlling access t...
1.7 Arrays in C++ and its detail........pdf
1.6 Control Structures in C++ .......pdf
1.5 Data Types in C++ and Its Details.pdf
C++ programming Basic and Operators of C++
1.2 Need of Object-Oriented Programming.pdf
1.1 Introduction to procedural, modular, object-oriented and generic programm...
B Tree, Introduction ,example,Splay tree
Tree-introduction ,Definition, Types of BT
Double Hashing.pptx
closed hashing.pptx
Collision resolution.pptx
Ad

Recently uploaded (20)

PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
additive manufacturing of ss316l using mig welding
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Geodesy 1.pptx...............................................
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Sustainable Sites - Green Building Construction
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
additive manufacturing of ss316l using mig welding
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
573137875-Attendance-Management-System-original
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Foundation to blockchain - A guide to Blockchain Tech
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
OOP with Java - Java Introduction (Basics)
Mechanical Engineering MATERIALS Selection
Geodesy 1.pptx...............................................
Lecture Notes Electrical Wiring System Components
CYBER-CRIMES AND SECURITY A guide to understanding
Sustainable Sites - Green Building Construction

1.3 Object Oriented Programming Paradigm, Basic Concepts of Object-Oriented Programming.pdf

  • 1. Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423 603 (An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune) NAAC ‘A’Grade Accredited, ISO 9001:2015 Certified Department of Computer Engineering (NBA Accredited) Subject- Object Oriented Programming (CO212) Unit 1 – Fundamentals of OOP Topic – 1.3 Object Oriented Programming Paradigm, Basic Concepts of Object-Oriented Programming Prof.V.N.Nirgude Assistant Professor E-mail : nirgudevikascomp@sanjivani.org.in Contact No: 9975240215
  • 2. OOP paradigm DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 2 In OOP paradigm, • Emphasis is on objects rather than procedure. • Programs are divided into entities known as classes of objects. • Data Structures are designed such that they characterize objects. • Functions that operate on data are tied together in a class. • Data is hidden and cannot be accessed by external functions. • Objects communicate with each other through functions. • New data and functions can be easily added whenever necessary. • Follows bottom up approach in program design.
  • 3. Organization of Data and Functions in OOP DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 3
  • 4. Basic Concepts in OOP DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 4 • Object • Class • Message Passing • Abstraction • Encapsulation • Inheritance • Polymorphism • Dynamic Binding
  • 5. Object • Object is a basic run-time entity of a class. •Object is also called as an instance of a class. •It may represent a person, a place or any item that the program must handle. • Example Representation of an object DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 5
  • 6. Class DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 6 • A class defines the type of an object. • A class is a prototype/template or a blue print of an object. • A class contains data and functions. • Any number of objects can be created for a single class. •Wecan create object of a class using syntax, ClassName objectName; •Here ClassName is a class which is already defined and objectName is any user-defined name. • For example, if Student is a class, Student neha,pratik; In above example, neha and pratik are objects of class Student.
  • 7. Message Passing •A message passing is a request for execution of a procedure or to invoke a function in the receiving object that generates the desiredresult. •Message passing involves specifying the name of the object, the name of the function i.e. message or the information to be sent. • Objects can communicate with each other by passing messages same as people pass messages to each other. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 7
  • 8. Abstraction DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 8 features as a list of relies on the •Abstraction refers to the representation of necessary without including details. •Classes use the concept of abstraction and are defined abstract data and functions to operate on these attributes. • Data abstraction is a programming technique that separation of interface and implementation.
  • 9. Abstraction • When you press a key on your keyboard the character appears on the screen, you need to know only this, but How exactly it works electronically, is not needed. • Another Example is when you use the remote control of your TV, you do not bother about how pressing a key in the remote changes the channel on the TV. Youjust know that pressing the + volume button will increase the volume. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 9
  • 10. Encapsulation • In simple words, “Encapsulation is a process of members and member functions into a single unit”. binding data DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 10
  • 11. Encapsulation •The data is not accessible to the outside world, and only those functions which are wrapped in the class can access it. • This insulation of the data from direct access by the outside program is called data hiding or information hiding. • A Class is the best example of encapsulation. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 11
  • 12. Inheritance •Inheritance is the process by which object of one class acquire the properties of another class. •In OOP, the concept of inheritance provides the idea of reusability. •This means that we can add additional features to an existing class without modifying it. •Through effective use of inheritance, you can save a lot of time in your programming and also reduce error. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 12
  • 13. Polymorphism •Polymorphism is a Greek term which means than one form. •In polymorphism an operation may show different instances. the ability to take more different behavior in DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 13
  • 14. Polymorphism •For example, + is used to make sum of two numbers as well as it is used to combine two strings. • This is known as operator overloading because same operator may behave differently on different instances. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 14
  • 15. Polymorphism DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 15 • Same way functions can be overloaded. •For example, sum()function may arguments etc. - i.e. sum (5, 7) or sum (4, 6, 8). take two arguments or three
  • 16. Dynamic Binding DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 16 •Dynamic Binding is the process of linking of the code associated with a procedure call at the run-time”. • Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at run time.
  • 17. Thank You.. DEPARTMENT OF COMPUTER ENGINEERING , SCOE,KOPARGAON 17