Hello,
Suppose we have a class:register and another class rege that extends registers(subclass of register).
if we declare a handle for both the classes :
register c1;
rege c2=new;
c1=c2;
rege c3;
$cast(c3,c1);
i am not able to understand why cant we simply do c3=c2 and access the elements of reg class? Why do we need to use the cast operator? Basically i am not able to understand the importance of polymorphsm in this regard?