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.
About Question enthuware.ocajp.i.v7.2.1244 :
Moderator: admin
-
- Posts: 32
- Joined: Mon Dec 29, 2014 4:14 pm
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1244 :
Yes, it will work even at run time.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 48 guests