I have a parent class class A and a child class class C extends A.
class A
class C extends A
A a=new A(); C c=(C)a;
This gives me error. Wh
In java there is concept that without upcasting u can't perform downcasting
in this case u try to perform downcast with out upcasting