SlideShare a Scribd company logo
Programming with c++
By
P.Kaleeshwaran(181615)
II B.Sc Mathematics(CA)
SBK College,Aruppukottai
To
K.Padma Priya M.Sc(cs),M.Phill.
Assistent Profecser
Dept of Mathematics(CA)
SBK College,Aruppukottai
Basicconceptsof object – oriented
programming
 Objects
 Classes
 Data abstraction and encapsulation
 Inheritance
 Polymorphism
 Dynamic binding
 Message passing
Object :
 Object are the basic run-time entities in
the object-oriended system.
 They may also represent user-defined
data such as vectors,time and lists.
 When a program is executed, the object
by sending messages to one another.
 Each object contains data, and code to
manipulate the data.
Two ways of represending an object.
Object:STUDENT
DATA
Name
Date of birth
Marks
………
FUNCTIONS
Total
Average
Display
……..
STUDENT
Total
Average
Display
Classes:
 The entire set of data and code of an object can
be made a user-defined data type with the help
of a class.
 Each object is associated with the data of type
class with which they are created.
 A class is thus a collection of object of similar
type.
fruit mango;
Will create an object mango belonging to the class
fruit.
Data abstraction and encapsulation:
ENCAPSULATION
 The wrapping up of data and function into a
single unit is known as encapsulation.
 Data encapsulation is the most striking
feature of a class.
 The insulation of the data from direct access
by program is called data hiding or
information hinding.
ABSTRACTION
 Abstraction refers to the act of representing
essential without including the background
details or explanations.
 The attributes are sometimes called data
member because they hold information.
 The function that operate on these data are
sometimes called methods or member
function.
 Since the classes use the concept of data
abstraction they are known as abstract data
types(ADT).
Inheritance
 Inheritance is the process by which object of
class acquire the properties of object of another
class.
 It supports the concept of hierarchical
classification.
 In OOP, the concept of inheritance provides the
idea of reusability
 This is possible by deriving a new class from
the existing one.
Basic concept of oops
Polymorphism
 Polymorphism is another important OOP
concept.
 The behaviors depends upon the types of data
used in data used in the operation.
 The process of making an operator to exhibit
different behaviors in different instances is
known as operator overloading
 Using a single function name to perform
different types of tasks is known as function
overloading.
 Polymorphism plays an important roll in
allowing objects having different internal
structure to share the same external
interface.
Shape
Draw()
Triangle object
Draw( triangle)
Circle object
Draw (circle)
Box object
Draw (box)
Dynamic binding:
 Dynamic binding means that code
associated with a given procedure
call is not known util the time of the
call at run-time.
 A function call associated with a
plomorphic reference depends on the
dynamic type of that reference.
Message passing:
 An object-oriented program consists of a set of
object that communication with each other.
o Creating classes that define objects
and their behavior.
o Creating objects from class definitions.
o Establishing communication among objects.
 Object communication with one another by
sending and receiving information much the
same way as people pass message to one
another.
 Message passing involves specifying the
name of the object, the name of the function
and the information to be send.
employee.salary(name);
Object information
message
 Object have a life cycle.They can be created
and destroyed.
thank You

More Related Content

PDF
Object oriented programming C++
PPT
1207028 634528828886611250
PPTX
Object oriented programming concepts
PPTX
object oriented programing lecture 1
PPT
Object Oriented Programming Concepts using Java
PPTX
Object oriented programming concept
PPTX
principle of oop’s in cpp
Object oriented programming C++
1207028 634528828886611250
Object oriented programming concepts
object oriented programing lecture 1
Object Oriented Programming Concepts using Java
Object oriented programming concept
principle of oop’s in cpp

What's hot (20)

PPTX
Principles of oop
PPTX
Basic concept of Object Oriented Programming
PPTX
Dev Concepts: Object-Oriented Programming
PPTX
Oo ps concepts in c++
PPTX
Characteristics of oop
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
PPTX
Characteristics of OOPS
PDF
Functional Domain Modeling
PPTX
Object oriented programming 6 oop with c++
PDF
Java Programming Paradigms Chapter 1
PDF
Data Structure Interview Questions & Answers
PPTX
Object Oriented Programming Concepts
PPTX
Basic Concepts Of OOPS/OOPS in Java,C++
PPT
Chapter1 - Introduction to Object-Oriented Programming and Software Development
PDF
Fielded Sequential Dependence Model for Ad-Hoc Entity Retrieval in the Web of...
PPTX
SE-IT JAVA LAB OOP CONCEPT
PPTX
Object Oriented Concept
PPTX
Fundamentals of OOP (Object Oriented Programming)
PPTX
object oriented programming OOP
Principles of oop
Basic concept of Object Oriented Programming
Dev Concepts: Object-Oriented Programming
Oo ps concepts in c++
Characteristics of oop
Basic Concepts of OOPs (Object Oriented Programming in Java)
Characteristics of OOPS
Functional Domain Modeling
Object oriented programming 6 oop with c++
Java Programming Paradigms Chapter 1
Data Structure Interview Questions & Answers
Object Oriented Programming Concepts
Basic Concepts Of OOPS/OOPS in Java,C++
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Fielded Sequential Dependence Model for Ad-Hoc Entity Retrieval in the Web of...
SE-IT JAVA LAB OOP CONCEPT
Object Oriented Concept
Fundamentals of OOP (Object Oriented Programming)
object oriented programming OOP
Ad

Similar to Basic concept of oops (20)

PPT
General OOP concept [by-Digvijay]
PPTX
Object Oriented Programming Concepts Using C++
PPT
Object Oriented Language
PPTX
file_1670410681781.pptx
PPT
Lecture 2
PDF
Java chapter 3
PPT
Basic Java Concept - Practical Oriented Methodologies
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPTX
OOSD1-unit1_1_16_09.pptx
PPTX
Object Oriented Programming
PPT
DOC
Chapter1
PDF
MCA NOTES.pdf
PPTX
1 intro
PDF
PPTX
Python-Classes.pptx
PPTX
Interview preparation for programming.pptx
PDF
Object oriented software engineering concepts
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
PPTX
C++ programming introduction
General OOP concept [by-Digvijay]
Object Oriented Programming Concepts Using C++
Object Oriented Language
file_1670410681781.pptx
Lecture 2
Java chapter 3
Basic Java Concept - Practical Oriented Methodologies
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
OOSD1-unit1_1_16_09.pptx
Object Oriented Programming
Chapter1
MCA NOTES.pdf
1 intro
Python-Classes.pptx
Interview preparation for programming.pptx
Object oriented software engineering concepts
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
C++ programming introduction
Ad

More from Padma Kannan (14)

PPTX
B tree
PDF
Operators in C++
PPTX
Java packags
PPTX
Java and c++
PDF
Inheritance
PPTX
Functions in c++
PPTX
Functions in c++,
PPTX
Functions of dbms
PPTX
Classes,object and methods java
PPTX
Classes,object and methods jav
PPTX
LEARNING BASES OF ACTICITY
PPTX
Social networking risks
PDF
Inheritance
PPT
Excel2002
B tree
Operators in C++
Java packags
Java and c++
Inheritance
Functions in c++
Functions in c++,
Functions of dbms
Classes,object and methods java
Classes,object and methods jav
LEARNING BASES OF ACTICITY
Social networking risks
Inheritance
Excel2002

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Cloud computing and distributed systems.
PPTX
A Presentation on Artificial Intelligence
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectral efficient network and resource selection model in 5G networks
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Review of recent advances in non-invasive hemoglobin estimation
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Cloud computing and distributed systems.
A Presentation on Artificial Intelligence
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx

Basic concept of oops

  • 1. Programming with c++ By P.Kaleeshwaran(181615) II B.Sc Mathematics(CA) SBK College,Aruppukottai To K.Padma Priya M.Sc(cs),M.Phill. Assistent Profecser Dept of Mathematics(CA) SBK College,Aruppukottai
  • 2. Basicconceptsof object – oriented programming  Objects  Classes  Data abstraction and encapsulation  Inheritance  Polymorphism  Dynamic binding  Message passing
  • 3. Object :  Object are the basic run-time entities in the object-oriended system.  They may also represent user-defined data such as vectors,time and lists.  When a program is executed, the object by sending messages to one another.  Each object contains data, and code to manipulate the data.
  • 4. Two ways of represending an object. Object:STUDENT DATA Name Date of birth Marks ……… FUNCTIONS Total Average Display …….. STUDENT Total Average Display
  • 5. Classes:  The entire set of data and code of an object can be made a user-defined data type with the help of a class.  Each object is associated with the data of type class with which they are created.  A class is thus a collection of object of similar type. fruit mango; Will create an object mango belonging to the class fruit.
  • 6. Data abstraction and encapsulation: ENCAPSULATION  The wrapping up of data and function into a single unit is known as encapsulation.  Data encapsulation is the most striking feature of a class.  The insulation of the data from direct access by program is called data hiding or information hinding.
  • 7. ABSTRACTION  Abstraction refers to the act of representing essential without including the background details or explanations.  The attributes are sometimes called data member because they hold information.  The function that operate on these data are sometimes called methods or member function.  Since the classes use the concept of data abstraction they are known as abstract data types(ADT).
  • 8. Inheritance  Inheritance is the process by which object of class acquire the properties of object of another class.  It supports the concept of hierarchical classification.  In OOP, the concept of inheritance provides the idea of reusability  This is possible by deriving a new class from the existing one.
  • 10. Polymorphism  Polymorphism is another important OOP concept.  The behaviors depends upon the types of data used in data used in the operation.  The process of making an operator to exhibit different behaviors in different instances is known as operator overloading  Using a single function name to perform different types of tasks is known as function overloading.
  • 11.  Polymorphism plays an important roll in allowing objects having different internal structure to share the same external interface. Shape Draw() Triangle object Draw( triangle) Circle object Draw (circle) Box object Draw (box)
  • 12. Dynamic binding:  Dynamic binding means that code associated with a given procedure call is not known util the time of the call at run-time.  A function call associated with a plomorphic reference depends on the dynamic type of that reference.
  • 13. Message passing:  An object-oriented program consists of a set of object that communication with each other. o Creating classes that define objects and their behavior. o Creating objects from class definitions. o Establishing communication among objects.  Object communication with one another by sending and receiving information much the same way as people pass message to one another.
  • 14.  Message passing involves specifying the name of the object, the name of the function and the information to be send. employee.salary(name); Object information message  Object have a life cycle.They can be created and destroyed.