Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.569 :

Posted: Sun Jan 23, 2011 5:24 pm
by ETS User
This is the question that includes the picture illustrating an object hierarchy.
Consider the following class hierarchy shown in the image. (B1 and B2 are subclasses of A and C1, C2 are subclasses of B1)
Each answer option includes a "objectOfxx.m1(). What is "objectOf"? I've never seen this before, and, if it is a valid java keyword, are you sure it is covered on the SCJP6 exam?

Thank you

Re: About Question com.enthuware.ets.scjp.v6.2.569 :

Posted: Sun Jan 23, 2011 5:39 pm
by admin
Hi,
Names like objectOfC1 as in the given code: objectOfC1.m1(); are variable names. They just signify that they point to an object of the given class name. For example, in code "objectOfC1.m1();" objectOfC1 points to an object of class C1.
But you are right, it would be better if the question makes it even clearer by containing a statement to that effect in the question itself. Will be fixed asap.

thank you,
Paul.