We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Basics and
Concepts of CPPCPP Programming Language
C++ is a cross-platform language that can be used to create
ormance applicatio
* C++ was developed by Bjarne Stroustrup, as an
extension to the C language 4
* C++ is often viewed as a superset of C i
* C++ is also known as a “C with class”
+ C++ gives programmers a high level of control over
system resources and memory
am Neo!Why CPP?
Sy
C++ is an object-oriented programming \
language which gives a clear structure to
programs and allows code to be reused, lowering
development costs.
* C++ is portable and can be used to develop
applications that can be adapted to multiple
\ ]
‘\—_platforms. aDifference between C and CPP:
C Programming Language CPP Programming Language
Cis (mostly) a subset of C++. | C++ is (mostly) a superset of C.
C supports procedural C++ supports both procedural
programming. and object-oriented
programming paradigms.
C does not support information | Data is hidden by the
hiding Encapsulation
Cis a function driven language. | C++ is an object driven
language
C follows the top-down C++ follows the Bottom-up
approach. approach
nonTop
RAILWAY RESERVATION
I
TRAIN STATION ] [ Passencer TICKETS
BOTTOMDifferences between procedural and object-
oriented programming
Procedural Oriented Programming
Object Oriented Programming
The program is divided into small parts,
called functions
The program is divided into small parts
called object
No access specifier in this procedural
oriented.
Has access specifiers like private,
public and protected
Adding new data and functions is not
easy.
It does not have any proper way of
hiding data. so it is less secure.
Procedural programming is based on
the unreal world.
| Object-oriented pro
Adding new data and function is easy
It provides data hiding so it is more
secure,
mming is based
on the real world.
Code reusability absent in procedural
programming.
Examples: C, FORTRAN, Pascal,
Basic, etc
Code reusability present in object-
oriented programming.
Examples: C++, Java, Python, C#, etc
neoApplications of CPP
C++ is used in developing browsers, operating systems, and
applications, as well as in-game programming, embedded
systems, banking applications, software _ engineering,
compilers and so.
nonAdvantages of C++ Over
Other Languages:
* Object-oriented ee
* Speed compared to other
general-purpose language
* Rich library support
* Pointer support
* Support low level system