Unit - Ii Presentation: By: Lalit Kumar Hissaria 12CS38
Unit - Ii Presentation: By: Lalit Kumar Hissaria 12CS38
Unit - Ii Presentation: By: Lalit Kumar Hissaria 12CS38
PRESENTATION
By :
LALIT KUMAR HISSARIA
12CS38
CONTENT
Object
Class
Class data member
Difference between structure &
class
Specifier
1.private
2.public
3.protacted
CONTENT
Constructor
Destructor
Friend function
This pointer
New & Delete operators
Static class member
CONTENT
OBJECT
CLASS
ACCESS SPECIFIERS
1. PUBLIC:It will define the class
member within a public section or
publicly then it means it can be excess
any be where in the program and in
other program also.
2. PRIVATE:It will define any class
member as private then it means it can
excess only in a class or in same class
CONSTRUCTOR:-
Rules of constructor:
DESTRUCTOR:
ENCAPSULATION:
INHERITANCE:
TYPES OF INHERITANCE:
(base)
(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
A AAA
C
C
D
POLYMORPHISM:
TYPES OF
POLYMORPHISM:
Polymorphism
Compile time
time
Function
Pure Virtual
Overloading
function
Run
Operator
Overloading
Virtual
function
Thank
You