I cannot understand what's going on behind the code.
the result is
3
MOVE
if I hadn't written :
v =d; // upcasting , safe
runtime error since d= (Dog)v; downcasting unsafe.
who can tell me what happend in memory after the following two
lines?
thanks in advance!
v= d;
d = (Dog)v;