posted 12 years ago
I was trying this below code:
I really want to know what actually happens in Memory for these below two lines:
A a1 = new B();
B b1 = (B)a1;
Also I want to know the use of Upcasting,just some example from Practical life where we really need to use it.
I am not able to visualize this .