Module 2: Brief History of C++

Cards (11)

  • Object − Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors - wagging, barking, eating. An object is an instance of a class.
  • Class − A class can be defined as a template/blueprint that describes the behaviors/states that object of its type support.
  • Methods − A method is basically a behavior. A class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed.
  • Instance Variables − Each object has its unique set of instance variables. An objects state is created by the values assigned to these instance variables.
  • C++ Development Timeline
    • 1979 – Stroustrup starts to work on “C with Classes” in Bell Labs
    • 1983 – “C with Classes” renamed to “C++”
    • 1985 – The first edition of <C++ Programming Language>
    • 1989 – C++ 2.0 version was released
    • 1998 - The first ISO Standard (C++98)
    • 2003 – C++03, bugfixes of C++98
    • 2011 - C++11, a major revision
    • 2014 – C++14, bugfixes and small improvements of C++11
    • 2017 – (planned) C++17, the upcoming major version
  • char - for character storage (1byte)
  • int - for integral number (2 bytes)
  • float - single precision floating point (4 bytes)
  • double - double precision floating point numbers (8 bytes)
  • what logical expression is this || ?
    Conditional - OR
  • What logical expression is this && ?
    Conditional - AND