SlideShare a Scribd company logo
C++ session 1
OOP’s
Object Oriented Program
2
Introduction
Object oriented programming is a principle of design and development of programs using
modular approach.
It provides advantage in creation and development of software for real life applications.
We are going to learn Basic concept, Advantages, and Technologies used in Object
Oriented Programming.
Some of the Object oriented programming languages are c++ ,java, c# and so on.
3
 OOP was introduced to over come flaws in
the procedural approach to programming.
Such as lack of reusability and
maintainability.
 Fundamental idea behind object oriented
languages is to combine into a single unit
both data and the functions that operate on
that data. Such a unit is called an Object.
4
“
An Example to understand OOP
5
6
Non-object oriented programming
language Object Oriented programming
Language
Basic concept
▷ Objects
▷ Classes
▷ Data Encapsulation
▷ Inheritance
▷ Polymorphism
▷ Dynamic binding
▷ Message Passing
7
Objects
• Objects are basic building block for
designing programs.
• They may represent a person, a place
or any item that the program must be
handle.
• Every object must be the member of a
particular class
8
Classes
9
 Classes are user-defined data types and it behaves like built in types
of programming language.
 Object contains code and data which can be made user definite type
using class.
 Objects are variables of class.
 Once a class has been defined we can create any number of objects
for that class .
 A class is collection of objects of similar type.
10
• We can create object of class
using following syntax,
• syntax : class-name object-name;
• Here class name is class which is
already created. Object name is
any user defined name. for
example, if student is class,
• Example : Student Deepak, Pavan;
• In example Deepak and Pavan are
name of objects for class student.
We can create any number of
objects for class.
11
Encapsulation
12
 Data encapsulation combines data and functions
into a single unit called class. Data encapsulation
prevents direct access to data.
DATA
METHODS
Object
Data Encapsulation
Inheritance
13
In OOP, the concept of Inheritance provides the
idea of reusability.
This means that we can add additional features to
an existing class without modifying it.
Super class
Sub class 1 Sub class 2
14
15
Polymorphism
Polymorphism is a feature of object oriented
program programming where a function can
take multiple forms based on type of
arguments.
The ability of an operator and function to
take multiple forms is known as
polymorphism.
16
Dynamic binding
Binding is the process of connecting one program to
another. Dynamic binding means code associated with
procedure call is known only at the time of program
execution routine.
Message passing
17
In OOP, processing is done by sending message to
objects. A message for an object is request for
execution of procedure.
18
Analysis
19
Objects
Classes
Data Encapsulation
Inheritance
Polymorphism
Dynamic binding
Message Passing
20
21
Find more maps at slidescarnival.com/extra-free-resources-icons-and-maps 22
1. OVERVIEW of C++
C++
C++ is a statically typed, compiled, general-
purpose, case-sensitive, free-form
programming language that supports
procedural, object-oriented, and generic
programming.
C++ is regarded as a middle-level language, as
it comprises a combination of both high-level
and low-level language features.
23
Presentation design
24
▷ C++ was developed by Bjarne Stroustrup
starting in 1979 at Bell Labs in Murray Hill,
New Jersey, as an enhancement to the C
language and originally named C with
Classes but later it was renamed C++ in
1983.
▷ C++ is a superset of C, and that virtually any
legal C program is a legal C++ program.
Standard Libraries
25
▷ The core language giving all the building blocks
including variables, data types and iterals , etc.
▷ The C++ Standard Library giving a rich set of
functions manipulating files, strings, etc.
▷ The Standard Template Library (STL) giving a rich
set of methods manipulating data structures, etc.
Standard C++ consists of three important parts:
Learning C++
The purpose of learning a programming language is
to become a better programmer; that is, to become
more effective at designing and implementing new
systems and at maintaining old
ones.
C++ supports a variety of programming styles. You
can write in the style of Fortran, C, Smalltalk, etc., in
any language. Each style can achieve its aims
effectively while maintaining runtime and space
efficiency.
27
 Use of C++
C++ is used by hundreds of thousands of
programmers in essentially every application
domain.
C++ is being highly used to write device drivers and
other software that rely on direct
manipulation of hardware under real-time constraints.
C++ is widely used for teaching and research because
it is clean enough for successful
teaching of basic concepts.
Thanks!
28

More Related Content

Similar to c++session 1.pptx

1 intro
1 intro1 intro
1 intro
abha48
 
OOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdfOOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdf
HouseMusica
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
LakshyaChauhan21
 
oop.pptx
oop.pptxoop.pptx
oop.pptx
KabitaParajuli3
 
1 puc programming using c++
1 puc programming using c++1 puc programming using c++
1 puc programming using c++
Prof. Dr. K. Adisesha
 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
iansebuabeh
 
Oops and c fundamentals
Oops and c fundamentals Oops and c fundamentals
Oops and c fundamentals
umesh patil
 
SE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPTSE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
C++Day-1 Introduction.ppt
C++Day-1 Introduction.pptC++Day-1 Introduction.ppt
C++Day-1 Introduction.ppt
citizen15
 
C++ first s lide
C++ first s lideC++ first s lide
C++ first s lide
Sudhriti Gupta
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Languagedheva B
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
Amresh Raj
 
Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
Deborah Akuoko
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
Shanmuganathan C
 
The smartpath information systems c plus plus
The smartpath information systems  c plus plusThe smartpath information systems  c plus plus
The smartpath information systems c plus plus
The Smartpath Information Systems,Bhilai,Durg,Chhattisgarh.
 
OOP
OOPOOP
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in python
nitamhaske
 

Similar to c++session 1.pptx (20)

1 intro
1 intro1 intro
1 intro
 
OOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdfOOP lesson1 and Variables.pdf
OOP lesson1 and Variables.pdf
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
oop.pptx
oop.pptxoop.pptx
oop.pptx
 
JAVA PROGRAMMING
JAVA PROGRAMMING JAVA PROGRAMMING
JAVA PROGRAMMING
 
Birasa 1
Birasa 1Birasa 1
Birasa 1
 
1 puc programming using c++
1 puc programming using c++1 puc programming using c++
1 puc programming using c++
 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
 
JAVA PROGRAMMINGD
JAVA PROGRAMMINGDJAVA PROGRAMMINGD
JAVA PROGRAMMINGD
 
Oops and c fundamentals
Oops and c fundamentals Oops and c fundamentals
Oops and c fundamentals
 
SE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPTSE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPT
 
C++Day-1 Introduction.ppt
C++Day-1 Introduction.pptC++Day-1 Introduction.ppt
C++Day-1 Introduction.ppt
 
C++ first s lide
C++ first s lideC++ first s lide
C++ first s lide
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
 
Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
 
The smartpath information systems c plus plus
The smartpath information systems  c plus plusThe smartpath information systems  c plus plus
The smartpath information systems c plus plus
 
OOP
OOPOOP
OOP
 
Object oriented programming in python
Object oriented programming in pythonObject oriented programming in python
Object oriented programming in python
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

c++session 1.pptx

  • 3. Introduction Object oriented programming is a principle of design and development of programs using modular approach. It provides advantage in creation and development of software for real life applications. We are going to learn Basic concept, Advantages, and Technologies used in Object Oriented Programming. Some of the Object oriented programming languages are c++ ,java, c# and so on. 3
  • 4.  OOP was introduced to over come flaws in the procedural approach to programming. Such as lack of reusability and maintainability.  Fundamental idea behind object oriented languages is to combine into a single unit both data and the functions that operate on that data. Such a unit is called an Object. 4
  • 5. “ An Example to understand OOP 5
  • 6. 6 Non-object oriented programming language Object Oriented programming Language
  • 7. Basic concept ▷ Objects ▷ Classes ▷ Data Encapsulation ▷ Inheritance ▷ Polymorphism ▷ Dynamic binding ▷ Message Passing 7
  • 8. Objects • Objects are basic building block for designing programs. • They may represent a person, a place or any item that the program must be handle. • Every object must be the member of a particular class 8
  • 9. Classes 9  Classes are user-defined data types and it behaves like built in types of programming language.  Object contains code and data which can be made user definite type using class.  Objects are variables of class.  Once a class has been defined we can create any number of objects for that class .  A class is collection of objects of similar type.
  • 10. 10 • We can create object of class using following syntax, • syntax : class-name object-name; • Here class name is class which is already created. Object name is any user defined name. for example, if student is class, • Example : Student Deepak, Pavan; • In example Deepak and Pavan are name of objects for class student. We can create any number of objects for class.
  • 11. 11
  • 12. Encapsulation 12  Data encapsulation combines data and functions into a single unit called class. Data encapsulation prevents direct access to data. DATA METHODS Object Data Encapsulation
  • 13. Inheritance 13 In OOP, the concept of Inheritance provides the idea of reusability. This means that we can add additional features to an existing class without modifying it. Super class Sub class 1 Sub class 2
  • 14. 14
  • 15. 15 Polymorphism Polymorphism is a feature of object oriented program programming where a function can take multiple forms based on type of arguments. The ability of an operator and function to take multiple forms is known as polymorphism.
  • 16. 16 Dynamic binding Binding is the process of connecting one program to another. Dynamic binding means code associated with procedure call is known only at the time of program execution routine.
  • 17. Message passing 17 In OOP, processing is done by sending message to objects. A message for an object is request for execution of procedure.
  • 18. 18
  • 20. 20
  • 21. 21
  • 22. Find more maps at slidescarnival.com/extra-free-resources-icons-and-maps 22 1. OVERVIEW of C++
  • 23. C++ C++ is a statically typed, compiled, general- purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming. C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. 23
  • 24. Presentation design 24 ▷ C++ was developed by Bjarne Stroustrup starting in 1979 at Bell Labs in Murray Hill, New Jersey, as an enhancement to the C language and originally named C with Classes but later it was renamed C++ in 1983. ▷ C++ is a superset of C, and that virtually any legal C program is a legal C++ program.
  • 25. Standard Libraries 25 ▷ The core language giving all the building blocks including variables, data types and iterals , etc. ▷ The C++ Standard Library giving a rich set of functions manipulating files, strings, etc. ▷ The Standard Template Library (STL) giving a rich set of methods manipulating data structures, etc. Standard C++ consists of three important parts:
  • 26. Learning C++ The purpose of learning a programming language is to become a better programmer; that is, to become more effective at designing and implementing new systems and at maintaining old ones. C++ supports a variety of programming styles. You can write in the style of Fortran, C, Smalltalk, etc., in any language. Each style can achieve its aims effectively while maintaining runtime and space efficiency.
  • 27. 27  Use of C++ C++ is used by hundreds of thousands of programmers in essentially every application domain. C++ is being highly used to write device drivers and other software that rely on direct manipulation of hardware under real-time constraints. C++ is widely used for teaching and research because it is clean enough for successful teaching of basic concepts.