Professional Documents
Culture Documents
Title Presentation of C++
Title Presentation of C++
PRESENTATION OF C++
AUTHER
GIRDHARI LAL CHOUDHARY
BRANCH- COMPUTER SCIENCE
COLLEGE ID-12CS025
COLLEGE-GOVT. ENGINEERING COLLEGE, AJMER
CONTAINT:
Object
Class
Class data member
Difference between structure &
class
Specifier
1.private
2.public
3.protacted
CONTAINT:
Constructor
Destructor
Friend function
This pointer
New & Delete operators
Static class member
2. Non parameterize
constructor :It is also
called the default constructor. In
this type of constructor we cannot
pass of parameter an object.
Destructor cannot be
parameterized. It is always non
parameterized.
C++ has its default destructor
also which is called when there
is destructor method defined in
class.
We defined own destructor
because we allocate the run time
memory like in case of dynamic
constructor then we have to
create own destructor which can
automatically allocated the
TYPES OF INHERITANCE:
(child) B
2. Multilevel inheritance:
In this inheritance
one class can be as child class but
it is one class can have only single
child and single parent at a time.
A
B
C
C
D
TYPES OF
POLYMORPHISM: It has two types:1. compile time
polymorphism
2. run time polymorphism
Polymorphism
Compile time
Run time
Function
Operator
Pure Virtual
Overloading
Overloading
function
function
Virtual
THANK YOU
SUBIMITTED TO
DEELIP SIR