Multiple Choice
For the questions below, use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;
private int b;
...
}
public class A3 extends A2
{
private int q;
...
}
-Which of the following lists of instance data are accessible in A3?
A) x, y, z, a, b, q
B) a, b, q
C) a, q
D) x, z, a, q
E) x, a, q
Correct Answer:

Verified
Correct Answer:
Verified
Q10: Why is it a contradiction for an
Q13: If classes C1 and C2 both implement
Q20: A variable declared to be of one
Q22: For the questions below, consider the following
Q23: Write the init and paint methods of
Q24: For the questions below, assume that Student,
Q27: For the next questions, consider the following
Q28: Consider the following class hierarchy and answer
Q29: As described in the Software Failure, the
Q30: Although classes can be inherited from one-another,