Pages

Thursday, December 19, 2019

Introduction to C++ :

Introduction to C++ :


               C++ is general purpose  programming language which is an extension of  C. C++ is a High level programming language which Also allow low level programming which contain machine dependent coding can made system software , device drives. It can build high level programming application such as application software and hardware independent software. 

CPP language
C++ language

              C++ is inspired by computer simulation language called as simula 67.C++ support object oriented guidelines. It is also possible to code C++ as like CC++ can use existing C software libraries. 

               Java is written in C, major Operating System of modern times are written in C++.C++ is world 4th most used programming language.



History:


               C++ is high level programming language developed by Bjarne Stroustrup belong to Denmark. He Developed C++ in 1979 when he was doing work on his Ph. D.

Bjarne Stroustrup
Bjarne Stroustrup


               He work on language called simula which is primarily design for computer simulation purpose, simula 67 on which the Stroustrup has working was a object oriented language follows the object oriented guidelines. He found that this paradigm is useful in software development but simula 67 was very slow. Then he started work on C language. He tried to add the object oriented language feature in C .  

               The concept is made with the C with classes which further named it as C++ in 1983. The language is again updated in 1989 which include static and protected members and inheritance of several classes.   

Features of C++ :

  • C++ Support the principle of object oriented paradigm.
  • C++ joins three separate Programming traditions.

  1. The object oriented tradition represented by class enhancement in C.
  2. Generic programming, supported by C ++ templates.
  3. The procedural oriented language tradition by C.
  • C++ is superset of C, Contain feature of C and also contains some additional features.
  •  It provides key principle like:

  1. Encapsulation :  Act of combining the data and the function that are related to same object. The idea of bonding data and method those come under same object.
  2. Data-hiding  : It is technique used for software development to hide data members and protect the undesirable changes.
  3. Abstraction : process of  provide only essential information to outside world by hiding their details .
  4. Polymorphism :  It is simply the ability of a message to be display in more than one form. A call to a function will cause a different function to be executed.
  5. Inheritance  : it is a mechanism in which we can make a new class from the old class. The properties of old class are used in the new class.




No comments:

Post a Comment