SlideShare a Scribd company logo
Click to go my blog –  http://excellentprogramming.blogspot.com
History of c++ Created by Bjarne stroustrup. The C language is still supported with C++. BCPL language contributed many ideas. Class and oop comes from Simula67. Originally known as c with class. C++ named by Rick Mascitti in 1983.
Continue .... Still low level enough to be efficient. Still high level enough to be easy to code in. Makes heavy use of additional libraries. Comes with intrinsic math function etc. Able to coexit with other language.
Continue .... Will not help a bad programmer to be good one. Oop will assist in the design of the program. C is not necessary to know before C++. If you know c , it’s good. But i am not recommmedning you to use some bad procedurial way of programming. So better stay away from those and make you life more easier with C++.
Most used shortcut keys in TC As a good programmer you must use the short cut keys. Save – F2 Compile – F9 Make – Alt+F9 Run – Ctrl+F9
Your first programme  Header file  – the function description and it’s action code in those file. Main function  – Your programe execution strats from here. Hence all code must be inside of main function Cout  is used to display something on screen. #include<stdio.h> #include<iostream.h> int main() { cout<<&quot;Hi! Welcome to OOP's world&quot;; return 0; }
What Is Object-Oriented Programming? In structured programming techniques programs are typically organized around code. In Object-oriented programming techniques programs are organized around data, with the key principle being &quot;data controlling access to code.&quot; In an object-oriented language, you define the data and the routines that are permitted to act on that data. We must define precisely the data type what sort of operations can be applied to that data.
Three traits of OOP According to the principles of object-oriented programming, all OOP languages have three traits in common:  Encapsulation Polymorphism inheritance
Encapsulation  Encapsulation is the mechanism that binds together code and the data it manipulates. It keeps both safe from outside interference and misuse. In object – oriented language code and data may be combined in such a way that a self-contained &quot;black box&quot; is created.
Continue .... code and data are linked together in this fashion, an  object is  created. We can say this as an object is the device that supports encapsulation. Within an object, code, data, or both may be  private to that object or public. An object is a variable of a user-defined type. We can use it as like variable. However, in object-oriented programming, Each time you define a new type of object, you are creating a new data type. Each specific instance of this data type is a compound variable.
Private and public
Polymorphism  Polymorphism is characterized by the phrase &quot;one interface, multiple methods”. polymorphism is the attribute that allows  one interface  to control access to a  general class of actions . The  specific action  selected is determined by the exact  nature of the situation .
Continue .... It helps reduce complexity by allowing the same interface to be used to access a general class of actions. It is not our job to select the  specific action  as it applies to each situation. It is the job of our compiler(which compiles your program writeen in high level language). C++, both  run-time  and  compile-time  polymorphism are supported.
Inheritance  Inheritance  is the process by which one object can acquire the properties of another object like son has some father’s characters.  This is important because it supports the concept of  classification. Without  inheritance  we have to define properties or behaviour  explicitly  for each and every class even those are related to some one .
Continue .... Example of  inheritance
Continue .... However, through the use of classifications, an object need only define those qualities that make it unique within its class. It is the inheritance mechanism that makes it possible for one object to be a specific instance of a more general case. Go  to my blog to download the program  excellentprogramming

More Related Content

What's hot (20)

PPT
General OOP Concepts
Praveen M Jigajinni
 
PPTX
concept of oops
prince sharma
 
PPT
Oop Presentation
Ghaffar Khan
 
PPTX
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
PPTX
Object Oriented Technologies
Tushar B Kute
 
PPTX
Advance oops concepts
Sangharsh agarwal
 
PPTX
Object oriented programming
Amit Soni (CTFL)
 
PDF
Object Oriented Concepts in Real Projects
EPAM
 
PDF
Introduction to oops concepts
Nilesh Dalvi
 
PPTX
Object Oriented Programming
Iqra khalil
 
PDF
Object Oriented Programming using C++ Part II
Ajit Nayak
 
PPTX
Object oriented programming
Sandeep Kumar Singh
 
PPT
Concepts In Object Oriented Programming Languages
ppd1961
 
PPTX
Object Oriented Programming
Army Public School and College -Faisal
 
PPTX
Concepts of oops
Sourabrata Mukherjee
 
PPT
Oops
Prabhu R
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
PPTX
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
PPT
Introduction to oop
Kumar
 
General OOP Concepts
Praveen M Jigajinni
 
concept of oops
prince sharma
 
Oop Presentation
Ghaffar Khan
 
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
Object Oriented Technologies
Tushar B Kute
 
Advance oops concepts
Sangharsh agarwal
 
Object oriented programming
Amit Soni (CTFL)
 
Object Oriented Concepts in Real Projects
EPAM
 
Introduction to oops concepts
Nilesh Dalvi
 
Object Oriented Programming
Iqra khalil
 
Object Oriented Programming using C++ Part II
Ajit Nayak
 
Object oriented programming
Sandeep Kumar Singh
 
Concepts In Object Oriented Programming Languages
ppd1961
 
Object Oriented Programming
Army Public School and College -Faisal
 
Concepts of oops
Sourabrata Mukherjee
 
Oops
Prabhu R
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
Introduction to oop
Kumar
 

Similar to Oops And C++ Fundamentals (20)

PDF
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
PDF
M.c.a (sem iii) paper - i - object oriented programming
रवींद्र वैद्य
 
PDF
OOPS_Unit_1
Shipra Swati
 
PDF
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
hslinaaltosh
 
PPTX
c++session 1.pptx
PadmaN24
 
PDF
1 puc programming using c++
Prof. Dr. K. Adisesha
 
PPTX
Basics of object oriented programming
Nitin Kumar Kashyap
 
PPTX
java oops and java very important for .pptx
cherukuriyuvaraju9
 
PPTX
java oops compilation object class inheritance.pptx
CHERUKURIYUVARAJU209
 
PDF
C++ programing lanuage
Nimai Chand Das
 
PPT
Bca 2nd sem u-1 iintroduction
Rai University
 
PPT
C++Day-1 Introduction.ppt
citizen15
 
PDF
C++ & VISUAL C++
Makaha Rutendo
 
PPT
Mca 2 sem u-1 iintroduction
Rai University
 
PDF
Evolution Of Object Oriented Technology
Sharon Roberts
 
PDF
@vtucode.in-module-1-c++-2022-scheme.pdf
TheertheshTheertha1
 
PDF
OOP lesson1 and Variables.pdf
HouseMusica
 
PPTX
object oriented programming in c++ introduction lecture 1.pptx
amna hussain
 
PPTX
C++ first s lide
Sudhriti Gupta
 
PPT
Object Oriented Language
dheva B
 
CS305PC_C++_UNIT 1 notes jntuh third semester
VeeraswamyDasari2
 
M.c.a (sem iii) paper - i - object oriented programming
रवींद्र वैद्य
 
OOPS_Unit_1
Shipra Swati
 
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
hslinaaltosh
 
c++session 1.pptx
PadmaN24
 
1 puc programming using c++
Prof. Dr. K. Adisesha
 
Basics of object oriented programming
Nitin Kumar Kashyap
 
java oops and java very important for .pptx
cherukuriyuvaraju9
 
java oops compilation object class inheritance.pptx
CHERUKURIYUVARAJU209
 
C++ programing lanuage
Nimai Chand Das
 
Bca 2nd sem u-1 iintroduction
Rai University
 
C++Day-1 Introduction.ppt
citizen15
 
C++ & VISUAL C++
Makaha Rutendo
 
Mca 2 sem u-1 iintroduction
Rai University
 
Evolution Of Object Oriented Technology
Sharon Roberts
 
@vtucode.in-module-1-c++-2022-scheme.pdf
TheertheshTheertha1
 
OOP lesson1 and Variables.pdf
HouseMusica
 
object oriented programming in c++ introduction lecture 1.pptx
amna hussain
 
C++ first s lide
Sudhriti Gupta
 
Object Oriented Language
dheva B
 
Ad

More from Subhasis Nayak (20)

PDF
Php, mysq lpart5(mysql)
Subhasis Nayak
 
PDF
working with database using mysql
Subhasis Nayak
 
PDF
Php, mysq lpart3
Subhasis Nayak
 
PDF
Php, mysq lpart4(processing html form)
Subhasis Nayak
 
PPT
Jsp 01
Subhasis Nayak
 
PPT
Jsp 02(jsp directives)2003
Subhasis Nayak
 
PPT
Php, mysq lpart1
Subhasis Nayak
 
PPT
Php, mysqlpart2
Subhasis Nayak
 
PPTX
C:\fakepath\jsp01
Subhasis Nayak
 
PPTX
Servlet & jsp
Subhasis Nayak
 
PPT
J2ee connector architecture
Subhasis Nayak
 
PPT
how to create object
Subhasis Nayak
 
PDF
Pointer in c++ part3
Subhasis Nayak
 
PDF
Pointer in c++ part2
Subhasis Nayak
 
PDF
Pointer in c++ part1
Subhasis Nayak
 
PDF
C++ arrays part2
Subhasis Nayak
 
ODP
C++ arrays part1
Subhasis Nayak
 
PDF
Introduction to network
Subhasis Nayak
 
PDF
Flow control in c++
Subhasis Nayak
 
PPT
Text mode Linux Installation Part 01
Subhasis Nayak
 
Php, mysq lpart5(mysql)
Subhasis Nayak
 
working with database using mysql
Subhasis Nayak
 
Php, mysq lpart3
Subhasis Nayak
 
Php, mysq lpart4(processing html form)
Subhasis Nayak
 
Jsp 02(jsp directives)2003
Subhasis Nayak
 
Php, mysq lpart1
Subhasis Nayak
 
Php, mysqlpart2
Subhasis Nayak
 
C:\fakepath\jsp01
Subhasis Nayak
 
Servlet & jsp
Subhasis Nayak
 
J2ee connector architecture
Subhasis Nayak
 
how to create object
Subhasis Nayak
 
Pointer in c++ part3
Subhasis Nayak
 
Pointer in c++ part2
Subhasis Nayak
 
Pointer in c++ part1
Subhasis Nayak
 
C++ arrays part2
Subhasis Nayak
 
C++ arrays part1
Subhasis Nayak
 
Introduction to network
Subhasis Nayak
 
Flow control in c++
Subhasis Nayak
 
Text mode Linux Installation Part 01
Subhasis Nayak
 
Ad

Recently uploaded (20)

PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 

Oops And C++ Fundamentals

  • 1. Click to go my blog – http://excellentprogramming.blogspot.com
  • 2. History of c++ Created by Bjarne stroustrup. The C language is still supported with C++. BCPL language contributed many ideas. Class and oop comes from Simula67. Originally known as c with class. C++ named by Rick Mascitti in 1983.
  • 3. Continue .... Still low level enough to be efficient. Still high level enough to be easy to code in. Makes heavy use of additional libraries. Comes with intrinsic math function etc. Able to coexit with other language.
  • 4. Continue .... Will not help a bad programmer to be good one. Oop will assist in the design of the program. C is not necessary to know before C++. If you know c , it’s good. But i am not recommmedning you to use some bad procedurial way of programming. So better stay away from those and make you life more easier with C++.
  • 5. Most used shortcut keys in TC As a good programmer you must use the short cut keys. Save – F2 Compile – F9 Make – Alt+F9 Run – Ctrl+F9
  • 6. Your first programme Header file – the function description and it’s action code in those file. Main function – Your programe execution strats from here. Hence all code must be inside of main function Cout is used to display something on screen. #include<stdio.h> #include<iostream.h> int main() { cout<<&quot;Hi! Welcome to OOP's world&quot;; return 0; }
  • 7. What Is Object-Oriented Programming? In structured programming techniques programs are typically organized around code. In Object-oriented programming techniques programs are organized around data, with the key principle being &quot;data controlling access to code.&quot; In an object-oriented language, you define the data and the routines that are permitted to act on that data. We must define precisely the data type what sort of operations can be applied to that data.
  • 8. Three traits of OOP According to the principles of object-oriented programming, all OOP languages have three traits in common: Encapsulation Polymorphism inheritance
  • 9. Encapsulation Encapsulation is the mechanism that binds together code and the data it manipulates. It keeps both safe from outside interference and misuse. In object – oriented language code and data may be combined in such a way that a self-contained &quot;black box&quot; is created.
  • 10. Continue .... code and data are linked together in this fashion, an object is created. We can say this as an object is the device that supports encapsulation. Within an object, code, data, or both may be private to that object or public. An object is a variable of a user-defined type. We can use it as like variable. However, in object-oriented programming, Each time you define a new type of object, you are creating a new data type. Each specific instance of this data type is a compound variable.
  • 12. Polymorphism Polymorphism is characterized by the phrase &quot;one interface, multiple methods”. polymorphism is the attribute that allows one interface to control access to a general class of actions . The specific action selected is determined by the exact nature of the situation .
  • 13. Continue .... It helps reduce complexity by allowing the same interface to be used to access a general class of actions. It is not our job to select the specific action as it applies to each situation. It is the job of our compiler(which compiles your program writeen in high level language). C++, both run-time and compile-time polymorphism are supported.
  • 14. Inheritance Inheritance is the process by which one object can acquire the properties of another object like son has some father’s characters. This is important because it supports the concept of classification. Without inheritance we have to define properties or behaviour explicitly for each and every class even those are related to some one .
  • 15. Continue .... Example of inheritance
  • 16. Continue .... However, through the use of classifications, an object need only define those qualities that make it unique within its class. It is the inheritance mechanism that makes it possible for one object to be a specific instance of a more general case. Go to my blog to download the program excellentprogramming