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
Chapter 04 object oriented programming
PPTX
Introduction to Object Oriented Programming.pptx
PDF
22601221182_RAHUL_MODAK_BCAC301.pdf
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPT
2 Object Oriented Programming
PPTX
An introduction to object-oriented programming.pptx
PPTX
OOP Concepts.paper presentation. In computer science
PPTX
object oriented programming(oops)
Chapter 04 object oriented programming
Introduction to Object Oriented Programming.pptx
22601221182_RAHUL_MODAK_BCAC301.pdf
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
2 Object Oriented Programming
An introduction to object-oriented programming.pptx
OOP Concepts.paper presentation. In computer science
object oriented programming(oops)

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

PPTX
CPP-Unit 1.pptx
PDF
Computer_Programming_Part_II_Segment_01.pdf
PPTX
Object oriented programing
PPTX
Block_1_Unit- I.pdf bca learning for exam you
PPTX
Principles of OOPs.pptx
PPT
chapter - 1.ppt
PPTX
OOP.pptx
PDF
OOPS_Unit_1
PPTX
Basic Concepts of Object Oriented Programming using C++
PDF
L1-Introduction to OOPs concepts.pdf
PPTX
oop.pptx
PDF
Procedural-vs-Object-Oriented-Programming (1).pdf
PPTX
OOP CHAPTER object oreinted programming using c++
PPTX
Object oriented programming
PPTX
Oops concepts
PPTX
CPP_,module2_1.pptx
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
PPTX
Oo ps concepts in c++
PPTX
object oriented programming and methodology.pptx
PPTX
Object Oriented Programming intro Lecture 1.pptx
CPP-Unit 1.pptx
Computer_Programming_Part_II_Segment_01.pdf
Object oriented programing
Block_1_Unit- I.pdf bca learning for exam you
Principles of OOPs.pptx
chapter - 1.ppt
OOP.pptx
OOPS_Unit_1
Basic Concepts of Object Oriented Programming using C++
L1-Introduction to OOPs concepts.pdf
oop.pptx
Procedural-vs-Object-Oriented-Programming (1).pdf
OOP CHAPTER object oreinted programming using c++
Object oriented programming
Oops concepts
CPP_,module2_1.pptx
Unit 1- Basic concept of object-oriented-programming.ppt
Oo ps concepts in c++
object oriented programming and methodology.pptx
Object Oriented Programming intro Lecture 1.pptx
Ad

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Presentation on HIE in infants and its manifestations
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
GDM (1) (1).pptx small presentation for students
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
RMMM.pdf make it easy to upload and study
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Microbial diseases, their pathogenesis and prophylaxis
Presentation on HIE in infants and its manifestations
O7-L3 Supply Chain Operations - ICLT Program
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
GDM (1) (1).pptx small presentation for students
STATICS OF THE RIGID BODIES Hibbelers.pdf
Microbial disease of the cardiovascular and lymphatic systems
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.