SlideShare a Scribd company logo
2
Most read
8
Most read
11
Most read
Basic Concepts of
Object Oriented
Programming
using C++
By :- Shivam Pathak
CONTENTS :-
● What is Object Oriented Programming?
● List of basic concepts of Object Oriented Programming
● Class
● Objects
● Encapsulation
● Polymorphism
● Inheritance
● Abstraction
What is Object Oriented Programming?
Object oriented programming is a type of programming
which uses objects and classes its functioning. The object
oriented programming is based on real world entities like
inheritance, polymorphism, data hiding, etc. It aims at
binding together data and function work on these data sets
into a single entity to restrict their usage.
List of basic concepts of Object
Oriented Programming :-
Some basic concepts of object oriented programming are −
● CLASS
● OBJECTS
● ENCAPSULATION
● POLYMORPHISM
● INHERITANCE
● ABSTRACTION
CLASS
● Class is a user-defined data-type.
● A class contains members like data members and member
functions.
● Data members are variables of the class.
● Member functions are the methods that are used to
manipulate data members.
● Data members define the properties of the class whereas
the member functions define the behaviour of the class.
OBJECTS
An object is an instance of a class. It is an entity with
characteristics and behaviour that are used in the object
oriented programming. An object is the entity that is created
to allocate memory. A class when defined does not have
memory chunk itself which will be allocated as soon as
objects are created.
Syntax :-
class_name object_name;
ENCAPSULATION
Encapsulation In object oriented programming, encapsulation is
the concept of wrapping together of data and information in a
single unit. A formal definition of encapsulation would be:
encapsulation is binding together the data and related function
that can manipulate the data.
Due to the concept of encapsulation in object oriented
programming another very important concept is possible, it is
data abstraction or Data Hiding. it is possible as encapsulating
hides the data at show only the information that is required to
be displayed.
POLYMORPHISM
The name defines polymorphism is
multiple forms which means
polymorphism is the ability of object
oriented programming to do some work
using multiple forms. The behaviour of the
method is dependent on the type or the
situation in which the method is called.
In C++ programming language,
polymorphism is achieved using two
ways:-
● Operator Overloading
● Function Overloading
Inheritance
It is the capability of a class to inherit or derive properties or
characteristics other class. it is very important and object oriented
program as it allows reusability i.e. using a method defined in
another class by using inheritance.
C++ programming language supports the following types of
inheritance
● Single inheritance ⚪ Hierarchical
inheritance
● Multiple inheritance ⚪ Hybrid
Abstraction
Abstraction Data abstraction or Data Hiding is the concept
of hiding data and showing only relevant data to the final
user. It is also an important part object oriented programing.
In C plus plus programming language write two ways using
which we can accomplish data abstraction −
● using class
● using header file
Basic Concepts of Object Oriented Programming using C++

More Related Content

What's hot (20)

PPTX
Pointers in C Programming
Jasleen Kaur (Chandigarh University)
 
PPTX
Static Data Members and Member Functions
MOHIT AGARWAL
 
PDF
Function overloading ppt
Prof. Dr. K. Adisesha
 
PPTX
Concept of OOPS with real life examples
Neha Sharma
 
PPT
C++ classes tutorials
Mayank Jain
 
PPT
Basic concepts of oops
Chandrakiran Satdeve
 
PPTX
Encapsulation C++
Hashim Hashim
 
PPTX
Python: Basic Inheritance
Damian T. Gordon
 
PPT
RECURSION IN C
v_jk
 
PPTX
Mongo Nosql CRUD Operations
anujaggarwal49
 
ODP
Python Modules
Nitin Reddy Katkam
 
PPTX
Basics of Object Oriented Programming in Python
Sujith Kumar
 
PPTX
Character Arrays and strings in c language
mallikavin
 
PPTX
Linked list
KalaivaniKS1
 
PPTX
Polymorphism in Python
Home
 
ODP
ER Model in DBMS
Kabindra Koirala
 
PPTX
Python for kids - 1.pptx
sanyam1427
 
PPTX
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Andrew Ferlitsch
 
Pointers in C Programming
Jasleen Kaur (Chandigarh University)
 
Static Data Members and Member Functions
MOHIT AGARWAL
 
Function overloading ppt
Prof. Dr. K. Adisesha
 
Concept of OOPS with real life examples
Neha Sharma
 
C++ classes tutorials
Mayank Jain
 
Basic concepts of oops
Chandrakiran Satdeve
 
Encapsulation C++
Hashim Hashim
 
Python: Basic Inheritance
Damian T. Gordon
 
RECURSION IN C
v_jk
 
Mongo Nosql CRUD Operations
anujaggarwal49
 
Python Modules
Nitin Reddy Katkam
 
Basics of Object Oriented Programming in Python
Sujith Kumar
 
Character Arrays and strings in c language
mallikavin
 
Linked list
KalaivaniKS1
 
Polymorphism in Python
Home
 
ER Model in DBMS
Kabindra Koirala
 
Python for kids - 1.pptx
sanyam1427
 
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Andrew Ferlitsch
 

Similar to Basic Concepts of Object Oriented Programming using C++ (20)

PDF
OOP concepts with respected with Python
pankajdesai217634
 
PPTX
Principles of OOPs.pptx
LakshyaChauhan21
 
PPTX
CPP-Unit 1.pptx
YashKoli22
 
PPTX
PHP OOP Lecture - 01.pptx
Atikur Rahman
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
PPTX
Object oriented programming in python
nitamhaske
 
PPTX
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PPTX
Introduction to OOPs second year cse.pptx
solemanhldr
 
PPT
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
PPTX
OOP-1.pptx
iansebuabeh
 
PPTX
Oop ppt
Shani Manjara
 
PDF
OOPS_Unit_1
Shipra Swati
 
PDF
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
PPTX
c++session 1.pptx
PadmaN24
 
PPTX
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
PPSX
Object Oriented Programming Overview for the PeopleSoft Developer
Lee Greffin
 
PPTX
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
OOP concepts with respected with Python
pankajdesai217634
 
Principles of OOPs.pptx
LakshyaChauhan21
 
CPP-Unit 1.pptx
YashKoli22
 
PHP OOP Lecture - 01.pptx
Atikur Rahman
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Object oriented programming in python
nitamhaske
 
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Introduction to OOPs second year cse.pptx
solemanhldr
 
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
OOP-1.pptx
iansebuabeh
 
Oop ppt
Shani Manjara
 
OOPS_Unit_1
Shipra Swati
 
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
c++session 1.pptx
PadmaN24
 
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
Object Oriented Programming Overview for the PeopleSoft Developer
Lee Greffin
 
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
Ad

Recently uploaded (20)

PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
Quarter 1_PPT_PE & HEALTH 8_WEEK 3-4.pptx
ronajadolpnhs
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Quarter 1_PPT_PE & HEALTH 8_WEEK 3-4.pptx
ronajadolpnhs
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
Controller Request and Response in Odoo18
Celine George
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Ad

Basic Concepts of Object Oriented Programming using C++

  • 1. Basic Concepts of Object Oriented Programming using C++ By :- Shivam Pathak
  • 2. CONTENTS :- ● What is Object Oriented Programming? ● List of basic concepts of Object Oriented Programming ● Class ● Objects ● Encapsulation ● Polymorphism ● Inheritance ● Abstraction
  • 3. What is Object Oriented Programming? Object oriented programming is a type of programming which uses objects and classes its functioning. The object oriented programming is based on real world entities like inheritance, polymorphism, data hiding, etc. It aims at binding together data and function work on these data sets into a single entity to restrict their usage.
  • 4. List of basic concepts of Object Oriented Programming :- Some basic concepts of object oriented programming are − ● CLASS ● OBJECTS ● ENCAPSULATION ● POLYMORPHISM ● INHERITANCE ● ABSTRACTION
  • 5. CLASS ● Class is a user-defined data-type. ● A class contains members like data members and member functions. ● Data members are variables of the class. ● Member functions are the methods that are used to manipulate data members. ● Data members define the properties of the class whereas the member functions define the behaviour of the class.
  • 6. OBJECTS An object is an instance of a class. It is an entity with characteristics and behaviour that are used in the object oriented programming. An object is the entity that is created to allocate memory. A class when defined does not have memory chunk itself which will be allocated as soon as objects are created. Syntax :- class_name object_name;
  • 7. ENCAPSULATION Encapsulation In object oriented programming, encapsulation is the concept of wrapping together of data and information in a single unit. A formal definition of encapsulation would be: encapsulation is binding together the data and related function that can manipulate the data. Due to the concept of encapsulation in object oriented programming another very important concept is possible, it is data abstraction or Data Hiding. it is possible as encapsulating hides the data at show only the information that is required to be displayed.
  • 8. POLYMORPHISM The name defines polymorphism is multiple forms which means polymorphism is the ability of object oriented programming to do some work using multiple forms. The behaviour of the method is dependent on the type or the situation in which the method is called. In C++ programming language, polymorphism is achieved using two ways:- ● Operator Overloading ● Function Overloading
  • 9. Inheritance It is the capability of a class to inherit or derive properties or characteristics other class. it is very important and object oriented program as it allows reusability i.e. using a method defined in another class by using inheritance. C++ programming language supports the following types of inheritance ● Single inheritance ⚪ Hierarchical inheritance ● Multiple inheritance ⚪ Hybrid
  • 10. Abstraction Abstraction Data abstraction or Data Hiding is the concept of hiding data and showing only relevant data to the final user. It is also an important part object oriented programing. In C plus plus programming language write two ways using which we can accomplish data abstraction − ● using class ● using header file