Discussion forum for the Sun Certified Java Associate (SCJA) Exam
SCJA Forum / Section 3 - Java Implementation of Object-Oriented Concepts / Question 3-44
Author Message
krahans
Member
# Posted: 20 Jun 2008 09:18
Reply 


Is this possible too in LINE E instead of a = d; =>
d = a; (with a as a Mammal() and d as Dog(); ??

And if not, why?
Thx
k.

krahans
Member
# Posted: 30 Jun 2008 12:34
Reply 


Ok, tested it.
Type mismatch => Cannot convert Animal to Dog

Your answer
Use [pre] text [/pre] to preformat text like source code. 

» Name  » Password 
Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

These forums are running on free forum software miniBB™ © 2001-2010
 

last modified : 7/24/2007 - 21:30