Object Oriented Programming Using C++

 History Of C++ :-

Background  History -

  1. C++ Development started in 1979.
  2. During the creation of Ph.D. thesis, Bjarne Stroustrup worked with language called Simula.
  3. Simula is basically useful for the simulation work.
  4. Simula was first language to support object-oriented Programming paradigm.
  5. Bjarne Stroustrup identified that this OOP features can be included in the software development.
  6. After that Bjarne Stroustrup started working on the C language and added more extra OOP features to the classic C.
  7. He added features in such a fashion that the basic flavour of C remains unaffected.
  8. C++ includes some add-on features such as classes, basic inheritance, in-lining, default function arguments, and strong type checking.

Basic History of C++

  1. During 1970 Dennis Ritchie created C Programming language.
  2. In the early 1980's also at Bell Laboratories, another programming language was created which was based upon the C language.
  3. C++ is also called as C with classes.
  4. Stroustrup states that the purpose of C++ is to make writing good programs easier and more pleasent for the individual programmer.
  5. C++ programming language is extension to C language.
  6. In C we have already used increment operator (++) Therefore we called C++ as "Incremented C" means Extension to C.

Versions Of C++ Language :-

  1. There are several versions of C++ Programming Language 
  2. Visual C++
  3. Borland C++
  4. Turbo C++
  5. Standardize C++ [ANSI C++]

Benefits of C++ over C Language 

The major difference being OOPS concept, C++ is an object oriented language whereas C language is a procedural language Apart form this there are many other features of C++ which gives this language an upper hand on C language.

    Following features of C++ makes it a stronger language than C 
  1. There is Stronger Type Checking in C++.
  2. All the OOPS features in C++ like Abstraction, Encapsulation inheritance etc. makes it more worthy and useful for programmer .
  3. C++ supports and allows user defined operators and function overloading is also supported in it.
  4. Exception Handling is there in C++.
  5. The concept of virtual functions and also Constructions and Destructors for objects.
  6. Inline Functions in C++ insted of Macros in C language Inline Functions make complete functions body act like Macro, safe.
  7. Variables can be declared anywhere in the program in C++ but must be declared before they are used.



No comments

Powered by Blogger.