Introduction to C++
Introduction to C++
1. C++ is a general purpose,case-sensitive, free-form programming language that0 supports object-oriented,procedural and generic programming.
2. C++ is a middle-level language,as it encapsulates both high and low level language features.
3. C++ was developed by Bjarne Stroustrup of AT&T Bell Laboratories in the early 1980's, and is based on the C language. The "++" is a syntactic construct used in C (to increment a variable), and C++ is intended as an incremental improvement of C. Most of C is a subset of C++, so that most C programs can be compiled (i.e. converted into a series of low-level instructions that the computer can execute directly) using a C++ compiler.
C++ is a superset of C, and that virtually any legal C program is a legal C++ program
C++ is an Object-Oriented Programming (OOP) Language. It was developed by “Bjarne Stroustrup” in 1980.
Bjarne Stroustrup wants to develop a language that support object-oriented programming features with the powerful features of C language, and hence C++ evolved.
C++ consists of C language features along with class-object construct features of Simula67.
Initially C++ is named as “C with Classes” by Bjarne Stroustrup but later in 1983,it was renamed to C++ (indicating an increment to C) proposed by Rrick Mascitti.
It is a superset of C language, i.e. C++ contains features of C language & adds some of its own. Almost all programs written in C are also C++ programs.
C++ programming language provides many essential features including polymorphism, virtual and friend functions, templates, namespaces and operator overloading etc.
Object-Oriented Programming (OOPs):
C++ supports the object-oriented programming, the four major pillar of object oriented programming used in C++ are:
a)Inheritance
b)Polymerphism
c)Encapsulation
d)Abstraction
C++ standard libraries:
1)The core library includes the data types, variables and literals, etc.
2)The standard library includes the set of functions manipulating strings, files, etc.
3)The Standard Template Library (STL) includes the set of methods manipulating a data structure
Comments