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

PPTX
Introduction to oop
DOC
Course outline [csc241 object oriented programming]
PPT
Oops and c fundamentals
PPT
PPT
Lecture 2
PDF
C++ [ principles of object oriented programming ]
PPT
Object Oriented Programming Concepts
PPT
Object Oriented Concepts and Principles
Introduction to oop
Course outline [csc241 object oriented programming]
Oops and c fundamentals
Lecture 2
C++ [ principles of object oriented programming ]
Object Oriented Programming Concepts
Object Oriented Concepts and Principles

What's hot (20)

PPT
General OOP Concepts
PPTX
concept of oops
PPT
Oop Presentation
PPTX
Oops concept in c++ unit 3 -topic 4
PPTX
Object Oriented Technologies
PPTX
Advance oops concepts
PPTX
Object oriented programming
PDF
Object Oriented Concepts in Real Projects
PDF
Introduction to oops concepts
PPTX
Object Oriented Programming
PDF
Object Oriented Programming using C++ Part II
PPTX
Object oriented programming
PPT
Concepts In Object Oriented Programming Languages
PPTX
Object Oriented Programming
PPTX
Concepts of oops
PPT
Oops
PPTX
Introduction to Object Oriented Programming
PPTX
SKILLWISE - OOPS CONCEPT
PPT
Introduction to oop
General OOP Concepts
concept of oops
Oop Presentation
Oops concept in c++ unit 3 -topic 4
Object Oriented Technologies
Advance oops concepts
Object oriented programming
Object Oriented Concepts in Real Projects
Introduction to oops concepts
Object Oriented Programming
Object Oriented Programming using C++ Part II
Object oriented programming
Concepts In Object Oriented Programming Languages
Object Oriented Programming
Concepts of oops
Oops
Introduction to Object Oriented Programming
SKILLWISE - OOPS CONCEPT
Introduction to oop
Ad

Similar to Oops And C++ Fundamentals (20)

PDF
CS305PC_C++_UNIT 1 notes jntuh third semester
PDF
M.c.a (sem iii) paper - i - object oriented programming
PDF
OOPS_Unit_1
PDF
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
PPTX
c++session 1.pptx
PDF
1 puc programming using c++
PPTX
Basics of object oriented programming
PPTX
java oops and java very important for .pptx
PPTX
java oops compilation object class inheritance.pptx
PDF
C++ programing lanuage
PPT
Bca 2nd sem u-1 iintroduction
PPT
C++Day-1 Introduction.ppt
PDF
C++ & VISUAL C++
PPT
Mca 2 sem u-1 iintroduction
PDF
Evolution Of Object Oriented Technology
PDF
OOP lesson1 and Variables.pdf
PPTX
object oriented programming in c++ introduction lecture 1.pptx
PPTX
C++ first s lide
PPT
Object Oriented Language
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
CS305PC_C++_UNIT 1 notes jntuh third semester
M.c.a (sem iii) paper - i - object oriented programming
OOPS_Unit_1
Object Oriented Programming With C 2140705 Darshan All Unit Darshan Institute...
c++session 1.pptx
1 puc programming using c++
Basics of object oriented programming
java oops and java very important for .pptx
java oops compilation object class inheritance.pptx
C++ programing lanuage
Bca 2nd sem u-1 iintroduction
C++Day-1 Introduction.ppt
C++ & VISUAL C++
Mca 2 sem u-1 iintroduction
Evolution Of Object Oriented Technology
OOP lesson1 and Variables.pdf
object oriented programming in c++ introduction lecture 1.pptx
C++ first s lide
Object Oriented Language
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
Ad

More from Subhasis Nayak (20)

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

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Institutional Correction lecture only . . .
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
master seminar digital applications in india
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Abdominal Access Techniques with Prof. Dr. R K Mishra
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharma ospi slides which help in ospi learning
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
Institutional Correction lecture only . . .
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Complications of Minimal Access Surgery at WLH
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Supply Chain Operations Speaking Notes -ICLT Program
master seminar digital applications in india
GDM (1) (1).pptx small presentation for students
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

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