SlideShare a Scribd company logo
OOPs in C++ Presented By: Ms. Niti Gupta
Main Areas  Procedure Oriented Programming Language Object Oriented Programming Language Concepts of OOPs
Procedural Oriented Programming Language The main program coordinates calls to procedures and hands over appropriate data as parameters.
Features of Procedure Oriented Programming Language Emphasis is on doing things. Larger programs are divided in to smaller programs known as functions. Data is Global shared by almost all the functions. Employs Top Down approach in Program Design.
Examples of Procedure Oriented Programming Language COBOL FORTRAN C
Object-Oriented Concept Objects of the program interact by sending messages to each other
Features of OOPs Emphasis is on data rather than procedures. Programs are divided into objects which are very close to the real world. Data is hidden and cannot be accessed by external functions. Functions that operate on the data are tied together into an object. Follows Bottom up approach in program design.
Basic Concept of Object-Oriented  Objects Classes Data Abstraction Data Encapsulation Inheritance Polymorphism Dynamic Binding
Objects Run time entities that may represent a person, place, bank account or any item. Each object contains data, and code to manipulate the data. Data represents the attributes of that object and functions represents the behaviour of that object
Objects Contd.
Classes User defined data types on which objects are created. Objects with similar properties and methods are grouped together to form a Class.  For example, mango, apple and orange are members of class fruit.
Data Abstraction Abstraction refers to the act of representing essential features without including the background details or explanations.
Data Encapsulation Wrapping of data and functions into a single unit is known as data encapsulation. Data is not accessible to the outside world, only those functions which are wrapped in the class can access it.
Inheritance Process of deriving a new class from an existing one is called Inheritance. The existing class is known as base class, parent class or super class. The new class that is formed is called derived class, child class or sub class.  Derived class has all the features of the base class plus it has some extra features also.
Example of Inheritance Automobile Two Wheeler Three Wheeler Four Wheeler Scooter Motor Bike Auto Rickshaw Car Bus
Types of Inheritance Single level Multi level Multiple Hierarchical Hybrid
Single Level Inheritance When there is one base class and only one class is deriving from it. Base Class Derived  Class
Multi Level Level Inheritance Class A Class B A class is derived from an already derived class. Class A is a base class for the derived class B. Class B is a base class for the derived class C. So, Class B is known as intermediate base class. Class C
Multiple Inheritance Class A Class B A Derived Class is created from two or more base classes. Class C
Hierarchical Inheritance Two or more classes are derived from one base class. Class A Class B Class C Class D Class E
Hybrid Inheritance Class A Class B Class C Class D Class E Combination of two or more types of Inheritance.
Polymorphism Ability to take more than one form. It includes Function Overloading Operator Overloading
Function Overloading Function Overloading refers to use of same function name for different purposes. These functions differ from each other by no. and types of arguments. Draw() Draw() Draw() Draw()
Operator Overloading Operator Overloading is a mechanism of redefining the meaning of C++ operators. For example: +, - ,++, -- ,* etc.
Binding Binding means connecting the function call to the code to be executed in response to the call. Binding Static Dynamic
Static Binding Static Binding means that the code associated with the function call is linked at compile time. Also known as early Binding or compile time Polymorphism.
Dynamic Binding Dynamic Binding means that the code associated with the function call is linked at run time.  Also known as late Binding or run time polymorphism.
Advantages of OOPs Data Security. Reusability of existing code. Creating new data types. Abstraction. Less development time. Reduce Complexity. Better Productivity.
Thanks
Queries Please

More Related Content

What's hot (20)

PDF
C++ [ principles of object oriented programming ]
Rome468
 
PDF
Object Oriented Programming Concepts
246paa
 
PPT
Lecture 2
emailharmeet
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
PPTX
Oops concepts
Kanan Gandhi
 
PPTX
Oo ps concepts in c++
Hemant Saini
 
PPT
Oops And C++ Fundamentals
Subhasis Nayak
 
PPTX
principle of oop’s in cpp
gourav kottawar
 
PPTX
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
PPTX
the Concept of Object-Oriented Programming
Aida Ramlan II
 
PDF
Concepts of OOPs
Essay Corp
 
PPTX
OOPS IN C++
Amritsinghmehra
 
PPTX
Concepts of oops
Sourabrata Mukherjee
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
PPTX
Object Oriented Technologies
Tushar B Kute
 
PPT
Oops ppt
abhayjuneja
 
PPT
Object Oriented Concepts and Principles
deonpmeyer
 
PPTX
Encapsulation
Githushan Gengaparam
 
C++ [ principles of object oriented programming ]
Rome468
 
Object Oriented Programming Concepts
246paa
 
Lecture 2
emailharmeet
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
Oops concepts
Kanan Gandhi
 
Oo ps concepts in c++
Hemant Saini
 
Oops And C++ Fundamentals
Subhasis Nayak
 
principle of oop’s in cpp
gourav kottawar
 
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Concepts of OOPs
Essay Corp
 
OOPS IN C++
Amritsinghmehra
 
Concepts of oops
Sourabrata Mukherjee
 
object oriented programing lecture 1
Geophery sanga
 
Object Oriented Technologies
Tushar B Kute
 
Oops ppt
abhayjuneja
 
Object Oriented Concepts and Principles
deonpmeyer
 
Encapsulation
Githushan Gengaparam
 

Similar to C plusplus (20)

PDF
Object oriented programming C++
AkshtaSuryawanshi
 
PPTX
C++ programming introduction
sandeep54552
 
PPT
Unit 5.ppt
JITTAYASHWANTHREDDY
 
PPTX
Opp concept in c++
SadiqullahGhani1
 
PPTX
ITTutor Advanced Java (1).pptx
kristinatemen
 
PDF
MCA NOTES.pdf
RAJASEKHARV10
 
PPTX
Rajib Ali Presentation on object oreitation oop.pptx
domefe4146
 
PPTX
Inheritance concepts Presentation (8).pptx
ABHINAVARYANCSEA301
 
PPT
C++ basic intro on c++ programming language ppt
PavithraD65
 
PDF
M.c.a. (sem iv)- java programming
Praveen Chowdary
 
PPT
The smartpath information systems c plus plus
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
PPTX
Principles of oop
SeethaDinesh
 
PDF
@vtucode.in-module-1-c++-2022-scheme.pdf
TheertheshTheertha1
 
DOCX
Basic concept of object oriented programming
Mansur Mughnee
 
PPTX
Interview preparation for programming.pptx
BilalHussainShah5
 
PDF
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
PDF
C++ Version 2
JIGAR MAKHIJA
 
PDF
Inheritance
Pranali Chaudhari
 
PPTX
Object Oriented Programming using C++(UNIT 1)
Dr. SURBHI SAROHA
 
PPTX
POP vs OOP Introduction
Hashni T
 
Object oriented programming C++
AkshtaSuryawanshi
 
C++ programming introduction
sandeep54552
 
Opp concept in c++
SadiqullahGhani1
 
ITTutor Advanced Java (1).pptx
kristinatemen
 
MCA NOTES.pdf
RAJASEKHARV10
 
Rajib Ali Presentation on object oreitation oop.pptx
domefe4146
 
Inheritance concepts Presentation (8).pptx
ABHINAVARYANCSEA301
 
C++ basic intro on c++ programming language ppt
PavithraD65
 
M.c.a. (sem iv)- java programming
Praveen Chowdary
 
The smartpath information systems c plus plus
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
Principles of oop
SeethaDinesh
 
@vtucode.in-module-1-c++-2022-scheme.pdf
TheertheshTheertha1
 
Basic concept of object oriented programming
Mansur Mughnee
 
Interview preparation for programming.pptx
BilalHussainShah5
 
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
C++ Version 2
JIGAR MAKHIJA
 
Inheritance
Pranali Chaudhari
 
Object Oriented Programming using C++(UNIT 1)
Dr. SURBHI SAROHA
 
POP vs OOP Introduction
Hashni T
 
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Ad

C plusplus

  • 1. OOPs in C++ Presented By: Ms. Niti Gupta
  • 2. Main Areas Procedure Oriented Programming Language Object Oriented Programming Language Concepts of OOPs
  • 3. Procedural Oriented Programming Language The main program coordinates calls to procedures and hands over appropriate data as parameters.
  • 4. Features of Procedure Oriented Programming Language Emphasis is on doing things. Larger programs are divided in to smaller programs known as functions. Data is Global shared by almost all the functions. Employs Top Down approach in Program Design.
  • 5. Examples of Procedure Oriented Programming Language COBOL FORTRAN C
  • 6. Object-Oriented Concept Objects of the program interact by sending messages to each other
  • 7. Features of OOPs Emphasis is on data rather than procedures. Programs are divided into objects which are very close to the real world. Data is hidden and cannot be accessed by external functions. Functions that operate on the data are tied together into an object. Follows Bottom up approach in program design.
  • 8. Basic Concept of Object-Oriented Objects Classes Data Abstraction Data Encapsulation Inheritance Polymorphism Dynamic Binding
  • 9. Objects Run time entities that may represent a person, place, bank account or any item. Each object contains data, and code to manipulate the data. Data represents the attributes of that object and functions represents the behaviour of that object
  • 11. Classes User defined data types on which objects are created. Objects with similar properties and methods are grouped together to form a Class. For example, mango, apple and orange are members of class fruit.
  • 12. Data Abstraction Abstraction refers to the act of representing essential features without including the background details or explanations.
  • 13. Data Encapsulation Wrapping of data and functions into a single unit is known as data encapsulation. Data is not accessible to the outside world, only those functions which are wrapped in the class can access it.
  • 14. Inheritance Process of deriving a new class from an existing one is called Inheritance. The existing class is known as base class, parent class or super class. The new class that is formed is called derived class, child class or sub class. Derived class has all the features of the base class plus it has some extra features also.
  • 15. Example of Inheritance Automobile Two Wheeler Three Wheeler Four Wheeler Scooter Motor Bike Auto Rickshaw Car Bus
  • 16. Types of Inheritance Single level Multi level Multiple Hierarchical Hybrid
  • 17. Single Level Inheritance When there is one base class and only one class is deriving from it. Base Class Derived Class
  • 18. Multi Level Level Inheritance Class A Class B A class is derived from an already derived class. Class A is a base class for the derived class B. Class B is a base class for the derived class C. So, Class B is known as intermediate base class. Class C
  • 19. Multiple Inheritance Class A Class B A Derived Class is created from two or more base classes. Class C
  • 20. Hierarchical Inheritance Two or more classes are derived from one base class. Class A Class B Class C Class D Class E
  • 21. Hybrid Inheritance Class A Class B Class C Class D Class E Combination of two or more types of Inheritance.
  • 22. Polymorphism Ability to take more than one form. It includes Function Overloading Operator Overloading
  • 23. Function Overloading Function Overloading refers to use of same function name for different purposes. These functions differ from each other by no. and types of arguments. Draw() Draw() Draw() Draw()
  • 24. Operator Overloading Operator Overloading is a mechanism of redefining the meaning of C++ operators. For example: +, - ,++, -- ,* etc.
  • 25. Binding Binding means connecting the function call to the code to be executed in response to the call. Binding Static Dynamic
  • 26. Static Binding Static Binding means that the code associated with the function call is linked at compile time. Also known as early Binding or compile time Polymorphism.
  • 27. Dynamic Binding Dynamic Binding means that the code associated with the function call is linked at run time. Also known as late Binding or run time polymorphism.
  • 28. Advantages of OOPs Data Security. Reusability of existing code. Creating new data types. Abstraction. Less development time. Reduce Complexity. Better Productivity.