SlideShare a Scribd company logo
Object Oriented Programming Using C++
Concept Of Object Oriented Programming
OOPs is an approach or a Programming pattern where the
programs are structured around objects rather than functions and
logic. It makes the data partitioned into two memory areas, i.e.,
data and functions, and helps make the code flexible and modular.
Object-oriented programming mainly focuses on objects that are
required to be manipulated. In OOPs, it can represent data as
objects that have attributes and functions.
Basic Object-Oriented Programming
 Object-An O Object can be defined as an entity that has a
state and behavior, or in other words, anything that exists
physically in the world is called an object. It can represent a
dog, a person, a table, etc. An object means the combination
of data and programs, which further represent an entity.
 Classes-Class can be defined as a blueprint of the object. It is
basically a collection of objects which act as building blocks.
 Abstraction- Abstraction helps in the data hiding process. It
helps in displaying the essential features without showing the
details or the functionality to the user. It avoids unnecessary
information or irrelevant details and shows only that specific
part which the user wants to see.
ABSTRACTION
 Encapsulation- The wrapping up of data and functions together
in a single unit is known as encapsulation. It can be achieved by
making the data members' scope private and the member
function’s scope public to access these data members.
Encapsulation makes the data non-accessible to the outside
world.
ENCAPSULATION
 Inheritance- Inheritance is the process in which two classes have
an is-a relationship among each other and objects of one class
acquire properties and features of the other class. The class which
inherits the features is known as the child class, and the class
whose features it inherited is called the parent class. For example,
Class Vehicle is the parent class, and Class Bus, Car, and Bike are
child classes.
INHERITANCE
 Polymorphism- It means many forms. It is the ability to take
more than one form. It is a feature that provides a function or an
operator with more than one definition. It can be implemented
using function overloading, operator overload, function
overriding, virtual function.
POLYMORPHISM
Advantages of OOPs
There are various advantages of object-oriented programming.
 OOPs provide reusability to the code and extend the use of
existing classes.
 In OOPs, it is easy to maintain code as there are classes and
objects, which helps in making it easy to maintain rather than
restructuring.
 It also helps in data hiding, keeping the data and information
safe from leaking or getting exposed.
 Object-oriented programming is easy to implement.
Object Oriented Programming using c++ main four piller in this

More Related Content

PPTX
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PPTX
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
PPTX
JAVA - Oops Concept.pptx
ayankamila005
 
PDF
What is Object-Oriented Programming (OOP) and Why Do We Need It?
MikeShadrin
 
PPTX
basics of c++ object oriented programming l anguage
farooqabubakar4000
 
PPTX
introduction to object oriented programming
farooqabubakar4000
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PPTX
1 intro
abha48
 
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
JAVA - Oops Concept.pptx
ayankamila005
 
What is Object-Oriented Programming (OOP) and Why Do We Need It?
MikeShadrin
 
basics of c++ object oriented programming l anguage
farooqabubakar4000
 
introduction to object oriented programming
farooqabubakar4000
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
1 intro
abha48
 

Similar to Object Oriented Programming using c++ main four piller in this (20)

PPTX
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 
PPTX
OOP.pptx
kalyanibedekar
 
PPTX
Chapter 04 object oriented programming
Praveen M Jigajinni
 
PPTX
Object oriented programming (oops) python
TayyabaIrshad6
 
PPTX
fileE_1722655797_5000762_Unit-1OOPS.pptx
mashokacem
 
DOCX
Benefits of encapsulation
Muhammad Nawzir Khan
 
PDF
CS3391 -OOP -UNIT – I NOTES FINAL.pdf
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
PDF
Oops concepts
ACCESS Health Digital
 
PPTX
Intro to object oriented programming.pptx
RafiaZafar19
 
PPT
OOP intro.ppt
NoreenNyauchiSarai1
 
PPTX
CPP-Unit 1.pptx
YashKoli22
 
PPTX
Chapter1 introduction
Jeevan Acharya
 
PPT
Oops slide
Ashok Sharma
 
PPTX
POP vs OOP Introduction
Hashni T
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
PDF
OOPS_Unit_1
Shipra Swati
 
PPTX
Object Oriented Programming in C++ in software development
khairpurkcaet
 
PPT
chapter - 1.ppt
SakthiVinoth78
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PPTX
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
RajendraKumarRajouri1
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 
OOP.pptx
kalyanibedekar
 
Chapter 04 object oriented programming
Praveen M Jigajinni
 
Object oriented programming (oops) python
TayyabaIrshad6
 
fileE_1722655797_5000762_Unit-1OOPS.pptx
mashokacem
 
Benefits of encapsulation
Muhammad Nawzir Khan
 
CS3391 -OOP -UNIT – I NOTES FINAL.pdf
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
Oops concepts
ACCESS Health Digital
 
Intro to object oriented programming.pptx
RafiaZafar19
 
OOP intro.ppt
NoreenNyauchiSarai1
 
CPP-Unit 1.pptx
YashKoli22
 
Chapter1 introduction
Jeevan Acharya
 
Oops slide
Ashok Sharma
 
POP vs OOP Introduction
Hashni T
 
Principles of OOPs.pptx
LakshyaChauhan21
 
OOPS_Unit_1
Shipra Swati
 
Object Oriented Programming in C++ in software development
khairpurkcaet
 
chapter - 1.ppt
SakthiVinoth78
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
OOSD Lecture 1-1.pptx FOR ENGINEERING STUDENTS
RajendraKumarRajouri1
 
Ad

Recently uploaded (20)

DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PDF
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
PDF
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PPTX
Strengthening open access through collaboration: building connections with OP...
Jisc
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Skill Development Program For Physiotherapy Students by SRY.pptx
Prof.Dr.Y.SHANTHOSHRAJA MPT Orthopedic., MSc Microbiology
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 
Congenital Hypothyroidism pptx
AneetaSharma15
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Strengthening open access through collaboration: building connections with OP...
Jisc
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Ad

Object Oriented Programming using c++ main four piller in this

  • 2. Concept Of Object Oriented Programming OOPs is an approach or a Programming pattern where the programs are structured around objects rather than functions and logic. It makes the data partitioned into two memory areas, i.e., data and functions, and helps make the code flexible and modular. Object-oriented programming mainly focuses on objects that are required to be manipulated. In OOPs, it can represent data as objects that have attributes and functions.
  • 3. Basic Object-Oriented Programming  Object-An O Object can be defined as an entity that has a state and behavior, or in other words, anything that exists physically in the world is called an object. It can represent a dog, a person, a table, etc. An object means the combination of data and programs, which further represent an entity.  Classes-Class can be defined as a blueprint of the object. It is basically a collection of objects which act as building blocks.
  • 4.  Abstraction- Abstraction helps in the data hiding process. It helps in displaying the essential features without showing the details or the functionality to the user. It avoids unnecessary information or irrelevant details and shows only that specific part which the user wants to see. ABSTRACTION
  • 5.  Encapsulation- The wrapping up of data and functions together in a single unit is known as encapsulation. It can be achieved by making the data members' scope private and the member function’s scope public to access these data members. Encapsulation makes the data non-accessible to the outside world. ENCAPSULATION
  • 6.  Inheritance- Inheritance is the process in which two classes have an is-a relationship among each other and objects of one class acquire properties and features of the other class. The class which inherits the features is known as the child class, and the class whose features it inherited is called the parent class. For example, Class Vehicle is the parent class, and Class Bus, Car, and Bike are child classes. INHERITANCE
  • 7.  Polymorphism- It means many forms. It is the ability to take more than one form. It is a feature that provides a function or an operator with more than one definition. It can be implemented using function overloading, operator overload, function overriding, virtual function. POLYMORPHISM
  • 8. Advantages of OOPs There are various advantages of object-oriented programming.  OOPs provide reusability to the code and extend the use of existing classes.  In OOPs, it is easy to maintain code as there are classes and objects, which helps in making it easy to maintain rather than restructuring.  It also helps in data hiding, keeping the data and information safe from leaking or getting exposed.  Object-oriented programming is easy to implement.