Introduction to C++ :
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 C. C++ 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.
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.
- The object oriented tradition represented by class enhancement in C.
- Generic programming, supported by C ++ templates.
- 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:
- 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.
- Data-hiding : It is technique used for software development to hide data members and protect the undesirable changes.
- Abstraction : process of provide only essential information to outside world by hiding their details .
- 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.
- 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.
0 comments:
Post a Comment