What is C++?
C++ is an extension of the C language,
It was created by Bjarne Stroustrup in 1980’s (1’st released in 1983).
C++ supports object-oriented, procedural and generic
programming.
C++ is regarded as a middle-level language, which is combination of
both high-level and low-level.
Why C++?
The use of C++ :
Developing graphical user interface-based applications like adobe
photoshop.
Developing games as it overrides the complexity of 3D games.
Animated software developed.
Google Chrome, Mozilla Firefox etc. web browsers are developed
using C++.
What is namespace in C++?
If there are 2 or more functions with the same name defined in different libraries
then how will the compiler know which one to refer to?
Thus namespace came to the picture.
A namespace defines the scope and differentiates functions, classes,
variables etc. with the same name available in different libraries.
The namespace starts with the keyword “namespace”. The syntax for the same
is as follows:
What is operator overloading in C++?
Operator overloading is a compile-time polymorphism.