SlideShare a Scribd company logo
Introduction to OOP
• OOP stands for Object-Oriented Programming.
• Procedural programming is about writing
procedures or functions that perform operations on
the data, while object-oriented programming is
about creating objects that contain both data and
functions.
• Definition: Object oriented programming is a
programming methodology that associates data
structures with a set of operators which act upon it.
1.1-Introduction to Object oriented.pptx
1.1-Introduction to Object oriented.pptx
Elements of OOP
• Objects
• Classes
• Encapsulation
• Data Abstraction
• Inheritance
• Polymorphism
• Dynamic Binding
• Message Passing
• Object: This is the basic unit of object oriented
programming. That is both data and function
that operate on data are bundled as a unit
called as object.
• Class : A class is a user defined data type. It
serves as a template of the objects. It includes
data and the member functions that operate
on data.
• Encapsulation :
The wrapping up of data and member function into an
object is called encapsulation. The data is not
accessible to the outside world and only those
functions which are wrapped into the object can
access it.
• Data Abstraction: Data abstraction refers to, providing
only essential information to the outside world and
hiding their background details, i.e., to represent the
needed information in program without presenting
the details. ”“Data abstraction becomes an abstract
data type (ADT)or a user-defined type.”
• Inheritance: Inheritance is the mechanism to
provides the power of reusability and extendibility.
Inheritance is the process by which one object can
acquire the properties of another object.
• Polymorphism :
Polymorphism enables one common interface for
many implementations, and for objects to act
differently under different circumstances. You can
also achieve polymorphism in C++ by function
overloading, operator overloading and
implementation inheritance.
• Dynamic Binding: In dynamic binding, the code
to be executed in response to function call is
decided at runtime. C++ has virtual functions to
support this.
• Message Passing: Objects communicate with one
another by sending and receiving information to
each other. Message passing involves specifying
the name of the object, the name of the function
and the information to be sent.

More Related Content

PPTX
Principles of OOPs.pptx
PPT
Basic concepts of object oriented programming
PPTX
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
PPTX
IET307 OOP - object oriented programming concepts.pptx
PDF
Unit_2.00000000000000000000000000000.pdf
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
PPTX
1 unit (oops)
PPTX
Principles of OOPs.pptx
Basic concepts of object oriented programming
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
IET307 OOP - object oriented programming concepts.pptx
Unit_2.00000000000000000000000000000.pdf
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
1 unit (oops)

Similar to 1.1-Introduction to Object oriented.pptx (20)

PDF
Java chapter 3
PPTX
Lecture 1.pptx
PPTX
file_1670410681781.pptx
PPTX
OOP-1.pptx
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPTX
An overview of Object Oriented Programming in C#.
PDF
C++ chapter 1
PPT
Object Oriented Language
DOC
Chapter1
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
PPTX
Basic Concepts of Object Oriented Programming using C++
PPT
Basic Java Concept - Practical Oriented Methodologies
PPTX
Object Oriented Programming WEOBRDSLKBNSDF
PDF
Computer_Programming_Part_II_Segment_01.pdf
PDF
80410172053.pdf
PPTX
Fundamentals of OOP (Object Oriented Programming)
PPTX
Object Oriented Programming - Cheat sheet.pptx
PPT
Basic concepts of oops
PPTX
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
Java chapter 3
Lecture 1.pptx
file_1670410681781.pptx
OOP-1.pptx
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
An overview of Object Oriented Programming in C#.
C++ chapter 1
Object Oriented Language
Chapter1
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
Basic Concepts of Object Oriented Programming using C++
Basic Java Concept - Practical Oriented Methodologies
Object Oriented Programming WEOBRDSLKBNSDF
Computer_Programming_Part_II_Segment_01.pdf
80410172053.pdf
Fundamentals of OOP (Object Oriented Programming)
Object Oriented Programming - Cheat sheet.pptx
Basic concepts of oops
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
Ad

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
master seminar digital applications in india
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Insiders guide to clinical Medicine.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Cell Types and Its function , kingdom of life
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
TR - Agricultural Crops Production NC III.pdf
Anesthesia in Laparoscopic Surgery in India
Insiders guide to clinical Medicine.pdf
Pre independence Education in Inndia.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
Basic Mud Logging Guide for educational purpose
01-Introduction-to-Information-Management.pdf
Final Presentation General Medicine 03-08-2024.pptx
Cell Types and Its function , kingdom of life
PPH.pptx obstetrics and gynecology in nursing
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
human mycosis Human fungal infections are called human mycosis..pptx
Ad

1.1-Introduction to Object oriented.pptx

  • 1. Introduction to OOP • OOP stands for Object-Oriented Programming. • Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. • Definition: Object oriented programming is a programming methodology that associates data structures with a set of operators which act upon it.
  • 4. Elements of OOP • Objects • Classes • Encapsulation • Data Abstraction • Inheritance • Polymorphism • Dynamic Binding • Message Passing
  • 5. • Object: This is the basic unit of object oriented programming. That is both data and function that operate on data are bundled as a unit called as object. • Class : A class is a user defined data type. It serves as a template of the objects. It includes data and the member functions that operate on data.
  • 6. • Encapsulation : The wrapping up of data and member function into an object is called encapsulation. The data is not accessible to the outside world and only those functions which are wrapped into the object can access it. • Data Abstraction: Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details. ”“Data abstraction becomes an abstract data type (ADT)or a user-defined type.”
  • 7. • Inheritance: Inheritance is the mechanism to provides the power of reusability and extendibility. Inheritance is the process by which one object can acquire the properties of another object. • Polymorphism : Polymorphism enables one common interface for many implementations, and for objects to act differently under different circumstances. You can also achieve polymorphism in C++ by function overloading, operator overloading and implementation inheritance.
  • 8. • Dynamic Binding: In dynamic binding, the code to be executed in response to function call is decided at runtime. C++ has virtual functions to support this. • Message Passing: Objects communicate with one another by sending and receiving information to each other. Message passing involves specifying the name of the object, the name of the function and the information to be sent.