Wednesday 28 August 2013

Explicit Downcasting

converting super class type into sub class type known as down casting.
first up casting occurs then down casting takes place without up casting we cannot go for down casting.
if we done 2 step up casting then only we can go for 2 steps down casting..
up casting decides the down casting...

Example 1-


No comments :

Post a Comment