2 classes, A and B. class B inherits from class A. What's wrong with the following code?
B b3 = (A)(new B());
Why isn't it a legal Upcasting?
It make sense. B instructor creates the B part of the whole object then A create its part and then it acts like A.