Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

History of C++ Language

History of C++

Basically, the concept of C++ is introduced in the early ’80s (1982) by a software engineer Bjarne Stroustrup was doing work for his Ph.D. thesis in AT& T Bell Labs(American Telephone& Telegraph), located in Murray Hills, NewJersey, USA 

History of C++

Stroustrup is very interested in C language because of its powerful features like –

  • Multipurpose programming,
  • Portability
  • Pointers
  • Dynamic memory allocation,
  • Midlevel flavor…

Motivation from Simula67

  • The Major disadvantage of C language is, data is freely moving around the functions.
  • Due to this, It is not able to design super secure applications because of the absence of data hiding features
  • To avoid this problem the concept of classes is added to traditional C language which was picked from Simula67
  • Hence It was named as C with classes initially

Naming as C++

Initially, people call this language as

  • C with classes
  • Superset of C
  • Extension of C
  • Advanced version of C
  • Increment of C and many names…

To avoid this confusion in 1983 it was renamed as C++ from C with classes

Newly added keywords and exclusively in C++

asmdynamic_castnamespacereinterpret_cast
boolexplicitnewstatic_cast
catchfalseoperatortemplate
classfriendprivatethis
const_castinlinepublicthrow
deletemutableprotectedtrue
trytypeidtypenameusing
usingvirtualwchar_t 

Object-Oriented Programming

  • C++ main objective is to mix the flavors of data hiding with C to design super secure applications
  • Object Oriented programming is a programming style that is associated with the concept of Class, Objects and various other concepts revolving around these two, like Inheritance, Polymorphism, Abstraction, Encapsulation etc.
  • These ideas made C++ powerful to design both enterprise and system applications