Discussion forum for the Sun Certified Java Associate (SCJA) Exam
SCJA Forum / Section 2 - UML Representation of Object-Oriented Concepts / Question 2-27
Author Message
krahans
Member
# Posted: 20 Jun 2008 09:12
Reply 


In this example the class Lclazz extends Jclazz. So Jclazz is the superclass.
And the right answer for a valid code snippet is:
Lclazz lclazz = new Jclazz();

But i think that this one is the right answer (because every Lclazz is a Jclazz, but not every Jclazz is a Lclazz!):
Jclazz jclazz = new Lclazz();

Ralf Peter Korte
Member
# Posted: 26 Jun 2008 11:43
Reply 


You're right !

Please have a look at the errata page http://www.scja.de/ebook/errata.html

best regards,
Ralf Peter Korte

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 open source forum script miniBB™ © 2001-2010
 

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