In this tutorial you will learn about the C++ Features and its application with practical example.
C++ Features
C++ (also read as C plus) is a general-purpose object-oriented programming language. C++ is an enhanced version of the C language introduced with many new c++ features and is best known as a super-set of C language. It is a very powerful programming language that helps programmers write a variety of programs. Here we list some of the important features of C++
Simple:-
C++ comes with easy-to-learn simple English language like syntax, which makes it very easy to understand and develop C++ Programs.
High Performance:-
Being a statically typed language, C++ is generally performed more than any dynamically typed language because the code is type-checked before it is executed.
Statically Typed:-
C++ is a statically typed programming language, which means type checking is performed at compile-time instead of run-time. This allows the compiler to catch the bugs before executing the program.
Multi-Paradigm:-
C++ is a multi-paradigm object-oriented programming language that supports procedural, object-oriented (OOPs), and generic programming whereas C is a procedural programming language.
Object-Oriented:-
C++ is a general-purpose, multi-paradigm object-oriented programming language that supports procedural, object-oriented (OOPs), and generic programming whereas C is a procedural programming language. In compliance with four of the major OOPs principles Inheritance, Polymorphism, Encapsulation, and Abstraction.
Standard Template Library(STL):-
C++ comes with a rich inbuilt function library through Standard Template Library (STL).
Pointers:-
C++ supports the use of pointers which are often not available in several programming languages.
Portable:-
C++ is a Portable language, which allows you to write a program irrespective of the operating system as well as Hardware. Programs written in C++ can be executed in many machines with little bit or no change. C++ is a highly portable language that supports multi-device, multi-platform application development.
Reusable:-
C++ comes with an increased level of code re-usability due to the object-oriented programming model and libraries.
Exception handling:-
C++ supports exception handling which was not possible in C.
Memory Management:-
C++ supports dynamic memory allocation, which gives users complete control over memory management. In C++ language, we can be allocated and free up memory dynamically at any time.
Case Sensitive:-
C++ is a case-sensitive programming language. In C++ programming “abc” and “ABC” both are different.
Compiled:-
C++ has compiled language, which means C++ source code needs to be first compiled into low-level code, and then it can be executed, unlike interpreted programming languages where the compilation is not needed.
Platform Dependent:-
C++ is a platform-dependent language. A language is said to be platform-dependent whenever the program is executing in the same operating system where that was developed and compiled but not run and execute on another operating system.
Scalable:-
C++ becomes a preferred choice for applications where high concurrency, multithreading, and load tolerance are required. As C++ is close to the hardware and comes with multithreading libraries, that provide high concurrency and load tolerance and make C++ highly scalable.
Community:-
With C++ you will get a huge community of active members all around the world. C++ is the 6th most used and followed tag on StackOverflow and GitHub.