Introduction to C++

C++ It is recognized as an intermediate language. C++ was created by Bjarne Stroustrup. Because it is a mix of elements of high level and low level language.


C++ is an object oriented programming language. It was created in 1979 as an improvement to the C language developed by Jar Sterpop at Bell Labs. The original name of this language was Sea with Classes, which was renamed to C++ in 1983.


what is c++



C++ was created with a slant towards systems programming and has also been found beneficial in terms of performance and efficiency as its design shows.



C++ has been standardized by the International Organization for Standardization (ISO) (ISO). The C++ programming language was standardized in 1998. It was later updated by C++03, C++11 and C++14 Standards.



Developed by computer scientist Bjarne Stroustrup at Bell Labs in 1979 as an expansion of the C language. He desired an efficient and flexible language akin to C.



All the characteristics of C language are available in C++. C++ is a medium level language. Which supports high level and low level languages.



Features of C++


All applications in C++ may be written in basic english language. So that it is easy to comprehend and build by the coder.



It is the notion of transferring instructions from one system to another. In C++ language, the source code is in the .cpp file. We may also modify this code.



When we copy the .exe file to another machine. In which there is a Windows operating system. So it works properly. Because the fundamental code of the program is comparable to that of an operating system.



It is a multifunctional language. You may use it to develop big software. For example, C++ is used to develop device drivers.



C++ is a strong programming language. It has a thorough truth of data kinds, functions, control, and decision making.



The major benefit of C++ is that it is an object-oriented programming language. that

Fallow to principles like polymorphism, inheritance, encapsulation, abstraction.



Object Oriented Principles in C++

The object oriented principle utilized in C ++ language is being described here.



Class

Class is a user created data structure. And the class is likewise similar the structure. In which we may construct variables as well as functions. And subsequently they are accessible by objects.



Objects

As I mentioned you Class is a user defined structure. And the variables in the class are called objects. Through Object you may access the variables and functionalities of the class.



Abstraction

Abstraction is such a component of Object Oriented Programming. In which the same functionality is offered to the user. it is significant. For example, supposing you are driving a car, you will just pay attention to clutch, gear and steering, how the engine is operating. It doesn't make any sense to you. This functionality is possible solely through abstraction.



Encapsulation

Encapsulation is an object oriented programming feature. Encapsulation secures data and operations from outside access. Encapsulation offers us the protection of Public, Private, Protected. Whenever we make a class. So the type of our class is private by default.



inheritance

Inheritance is the notion of object oriented programming. In which one code may be utilized very simply in another location through inheritance. For example, assume you built a class. And you wish to utilise the functionalities of that class in another class. thus you go to your class

can inherit.



Polymorphism

Through polymorphism, you may execute various sorts of jobs from one function. Polymorphism is achieved through function overloading in C++. In which different operations are done by one function.



Message Passing

Message passing is a kind of communication between processes. Parallel is a method of communication used in programming and object oriented programming.


Hello World Program in C++

/*
* Multiple line
* comment
*/
#include<iostream>

//Single line comment
using namespace std;

//This is where the execution of program begins
int main()
{
   // displays Hello World! on screen
   cout<<"Hello World";

   return 0;
}

Output:

Hello world

Uses of C++

C ++ Programming Language is used to build Computer Softwares.

Along with Computer Softwares, it is also utilized for Drivers, Computer Hardwares, Servers.

History of C++

The development of C ++ Programming Language started in 1979.

By altering anything in C Programming itself, the notion of 'C with Classes' arose.

C++ Programming was created in 1983 by Bjarne Stroustrup at AT&T's Bell Labs by developing many additional concepts using 'C with Classes'.

Difference between C and C++





  • C is a process oriented programming language while C++ is a procedure and object oriented programming language.
  • There is no virtual function in C but there is in C++.
  • C is a top-down technique whereas C++ is a bottom-up method.
  • There is no inheritance in C but there is in C++.
  • Namespace is also not found in C although it is found in C++.
  • C is a middle level programming language whereas C++ is a high level programming language.
  • Function overloading is never done in C but it is in C++.
  • C++ has polymorphism notion but C does not.
  • C++ features operator overloading but C does not.
  • C++ has both user-defined and built-in data types, whereas C has just built-in data types.
  • The idea of encapsulation does not work in C but it works in C++.
  • C does not allow reference variables but C++ does.
  • Exception handling is not feasible in C but it is in C++.
  • The scanf () and printf () functions were used for input and output in C, whereas Cin and Cout are used for input and output in C++.

Conclusion

The primary theme of this essay was What is c++ ? Under which we attempted to explain to you the basics of this computer language. A programmer can learn any programming language only if he pays attention to the foundations of the language. 

If you have read the text carefully then it will be easy for you to select a programming language.

So ideally, throughout this post you must have understood properly what is c++? If you have any query or suggestion relating to this, please tell us by commenting below. If you wish, you can also share it with your peers on social media like Facebook, Whatsapp and Twitter.