Object Oriented Programming Using C++
History Of C++ :-
Background History -
- C++ Development started in 1979.
- During the creation of Ph.D. thesis, Bjarne Stroustrup worked with language called Simula.
- Simula is basically useful for the simulation work.
- Simula was first language to support object-oriented Programming paradigm.
- Bjarne Stroustrup identified that this OOP features can be included in the software development.
- After that Bjarne Stroustrup started working on the C language and added more extra OOP features to the classic C.
- He added features in such a fashion that the basic flavour of C remains unaffected.
- C++ includes some add-on features such as classes, basic inheritance, in-lining, default function arguments, and strong type checking.
Basic History of C++
- During 1970 Dennis Ritchie created C Programming language.
- In the early 1980's also at Bell Laboratories, another programming language was created which was based upon the C language.
- C++ is also called as C with classes.
- Stroustrup states that the purpose of C++ is to make writing good programs easier and more pleasent for the individual programmer.
- C++ programming language is extension to C language.
- In C we have already used increment operator (++) Therefore we called C++ as "Incremented C" means Extension to C.
Versions Of C++ Language :-
- There are several versions of C++ Programming Language
- Visual C++
- Borland C++
- Turbo C++
- 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
- There is Stronger Type Checking in C++.
- All the OOPS features in C++ like Abstraction, Encapsulation inheritance etc. makes it more worthy and useful for programmer .
- C++ supports and allows user defined operators and function overloading is also supported in it.
- Exception Handling is there in C++.
- The concept of virtual functions and also Constructions and Destructors for objects.
- Inline Functions in C++ insted of Macros in C language Inline Functions make complete functions body act like Macro, safe.
- Variables can be declared anywhere in the program in C++ but must be declared before they are used.
Post a Comment