SlideShare a Scribd company logo
BASIC CONCEPTS OF OBJECTS
ORIENTED PROGRAMMING
 An approach that provides a way of modularizing
programs by creating partitioned memory area for
both data and functions that can be used as templates
for creating copies of such modules on demand.
Object Oriented Programming (OOP)
BASIC CONCEPTS OF OBJECTS ORIENTED
PROGRAMMING
OOP
Objects
Classes
Data
Abstracti
on and
Encapsul
ation
Inheritan
ce
Polymor
phism
Dynamic
Binding
Message
Passing
 Objects are the basic run-time entities in an object-oriented
system.
 They may represent a person, a place, a bank account, a table
of data or any item that the program must handle.
 The fundamental idea behind object oriented approach is to
combine both data and function into a single unit and these
units are called objects.
 Objects means a combination of data and program that
represent some real word entity.
Objects
 The entire set of data and code of an object can be made a
user-defined data type with the help of a class.
 Objects are variables of the type class.
 Each object is associated with the data of type class with
which they are created.
 A class is thus a collection of objects of similar type.
Classes
 Abstraction refers to the act of representing essential features
without including the background details or explanations.
 Classes use the concept of abstraction and are defined as a list
of abstract attributes such as size , weight and cost and
functions to operate on these attributes.
 The attributes are sometimes called data members because
they hold information.
 The functions that operate on these data are called member
functions.
Abstraction
 The wrapping up of data and functions in to a single unit is
known as 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 data from the direct access by the program
is called data hiding or information hiding.
Encapsulation
 Inheritance is the process by which objects of one class acquire the
properties of another class.
 Inheritance provides the idea of reusability.
 This mean that we can add additional features to an existing class
with out modifying it.
 This is possible by designing a new class will have the combined
features of both the classes.
Inheritance
 Polymorphism means the ability to take more than one form .
 An operation may exhibit different behaviour in different instances.
 The behaviour depends up on the types of data used in the operation.
 The concepts of polymorphism are Operator overloading and Function overloading.
 For two numbers, the operator + will give the sum. If the operands are strings, then
the operation would produce a third string by concatenation .
 Thus the process of making an operator to exhibit different behaviours in different
instances is known as operator overloading.
 Similarly, we can use a single function to perform different tasks which is known as
function overloading.
Polymorphism
Polymorphism
 Dynamic binding means that the code associated with
a given procedure call is not known until the time of
the call at run-time.
 It is associated with polymorphism concept.
Dynamic Binding
 OOP consists of a set of objects that communicate with each other by
sending and receiving information .
 A message for an object is a request for execution of a procedure and
therefore will invoke a function in the receiving object that generates
the desired result.
Message Passing

More Related Content

PPTX
Chapter 04 object oriented programming
Praveen M Jigajinni
 
PDF
Object oriented programming C++
AkshtaSuryawanshi
 
PPTX
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
PPTX
Basic concept of oops
Padma Kannan
 
PDF
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
PPT
chapter - 1.ppt
SakthiVinoth78
 
PPTX
1 unit (oops)
Jay Patel
 
PPTX
introduction of Object oriented programming
RiturajJain8
 
Chapter 04 object oriented programming
Praveen M Jigajinni
 
Object oriented programming C++
AkshtaSuryawanshi
 
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
Basic concept of oops
Padma Kannan
 
L1-Introduction to OOPs concepts.pdf
BhanuJatinSingh
 
chapter - 1.ppt
SakthiVinoth78
 
1 unit (oops)
Jay Patel
 
introduction of Object oriented programming
RiturajJain8
 

Similar to Object Oriented Programming Concepts Using C++ (20)

PDF
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
PPTX
Object oriented programming
baabtra.com - No. 1 supplier of quality freshers
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PDF
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
PPTX
POP vs OOP Introduction
Hashni T
 
PPT
Basic concepts of oops
Chandrakiran Satdeve
 
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
KrishnaveniT8
 
PPTX
Unit 1 OOSE
ChhayaShelake
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
CPP_,module2_1.pptx
AbhilashTom4
 
PPTX
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
PPTX
concept of oops
prince sharma
 
PPTX
OOP.pptx
kalyanibedekar
 
PPTX
Oops concepts
Kanan Gandhi
 
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
PPT
Lecture 2
emailharmeet
 
PPTX
Object Oriented Programming using C++.pptx
parveen837153
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
Object oriented programming concepts
rahuld115
 
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
POP vs OOP Introduction
Hashni T
 
Basic concepts of oops
Chandrakiran Satdeve
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
KrishnaveniT8
 
Unit 1 OOSE
ChhayaShelake
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
CPP_,module2_1.pptx
AbhilashTom4
 
Object oriented programming 6 oop with c++
Vaibhav Khanna
 
concept of oops
prince sharma
 
OOP.pptx
kalyanibedekar
 
Oops concepts
Kanan Gandhi
 
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
Lecture 2
emailharmeet
 
Object Oriented Programming using C++.pptx
parveen837153
 
Object oriented programming concepts
rahuld115
 
Object oriented programming concepts
rahuld115
 
Ad

Recently uploaded (20)

PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PDF
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Ad

Object Oriented Programming Concepts Using C++

  • 1. BASIC CONCEPTS OF OBJECTS ORIENTED PROGRAMMING
  • 2.  An approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand. Object Oriented Programming (OOP)
  • 3. BASIC CONCEPTS OF OBJECTS ORIENTED PROGRAMMING OOP Objects Classes Data Abstracti on and Encapsul ation Inheritan ce Polymor phism Dynamic Binding Message Passing
  • 4.  Objects are the basic run-time entities in an object-oriented system.  They may represent a person, a place, a bank account, a table of data or any item that the program must handle.  The fundamental idea behind object oriented approach is to combine both data and function into a single unit and these units are called objects.  Objects means a combination of data and program that represent some real word entity. Objects
  • 5.  The entire set of data and code of an object can be made a user-defined data type with the help of a class.  Objects are variables of the type class.  Each object is associated with the data of type class with which they are created.  A class is thus a collection of objects of similar type. Classes
  • 6.  Abstraction refers to the act of representing essential features without including the background details or explanations.  Classes use the concept of abstraction and are defined as a list of abstract attributes such as size , weight and cost and functions to operate on these attributes.  The attributes are sometimes called data members because they hold information.  The functions that operate on these data are called member functions. Abstraction
  • 7.  The wrapping up of data and functions in to a single unit is known as 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 data from the direct access by the program is called data hiding or information hiding. Encapsulation
  • 8.  Inheritance is the process by which objects of one class acquire the properties of another class.  Inheritance provides the idea of reusability.  This mean that we can add additional features to an existing class with out modifying it.  This is possible by designing a new class will have the combined features of both the classes. Inheritance
  • 9.  Polymorphism means the ability to take more than one form .  An operation may exhibit different behaviour in different instances.  The behaviour depends up on the types of data used in the operation.  The concepts of polymorphism are Operator overloading and Function overloading.  For two numbers, the operator + will give the sum. If the operands are strings, then the operation would produce a third string by concatenation .  Thus the process of making an operator to exhibit different behaviours in different instances is known as operator overloading.  Similarly, we can use a single function to perform different tasks which is known as function overloading. Polymorphism
  • 11.  Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at run-time.  It is associated with polymorphism concept. Dynamic Binding
  • 12.  OOP consists of a set of objects that communicate with each other by sending and receiving information .  A message for an object is a request for execution of a procedure and therefore will invoke a function in the receiving object that generates the desired result. Message Passing