Page 2 of 2

Re: About Question enthuware.ocajp.i.v7.2.1244 :

Posted: Wed Sep 16, 2020 9:18 am
by Dreamweaver
can it be corrected like this? (I try it and run)

The line //1 will be allowed during compilation, since assignment is done from a subclass reference to a superclass reference.

The line //1 will be allowed during compilation and run time, since assignment is done from a subclass reference to a superclass reference.

Re: About Question enthuware.ocajp.i.v7.2.1244 :

Posted: Thu Sep 17, 2020 2:18 am
by admin
Yes, it will work even at run time.