Professional Documents
Culture Documents
Unit 4
Unit 4
UNIT-4
BY
MS. HARLEEN KAUR
ASST.PROFFESSOR(CSE)
Unit-4 OOPM
Runtime polymorphism 3
Uninitialized pointer
Null pointer
I. Uninitialized pointers
The pointer p is uninitialized and points
to a random location in memory when
declare it. It could be pointing into the
system stack, or the global variables, or
into the program's code space
Output
II Null pointer
initialization
61
Dynamic cast(run time information)
Disinheritance(By using virtual
keyword ambiguity is erased
(Hybrid Inheritance)
Output