Multiple Choice
Example Code Ch 09-4
Given the following partial class definition:
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;
...
}
-Refer to Example Code Ch 09-4: Which of the following is true with respect to A1, A2, and A3?
A) A1 is a subclass of A2 and A2 is a subclass of A3
B) A3 is a subclass of A2 and A2 is a subclass of A1
C) A1 and A2 are both subclasses of A3
D) A2 and A3 are both subclasses of A1
E) A1, A2 and A3 are all subclasses of the class A
Correct Answer:

Verified
Correct Answer:
Verified
Q20: If class AParentClass has a protected instance
Q21: Example Code Ch 09-1<br>Consider the following class
Q22: A derived class has access to all
Q23: Explain the difference between implementing an interface
Q24: Aside from permitting inheritance, the visibility modifier
Q26: Using the reserved word super, one can<br>A)
Q27: One way to allow for user interactivity
Q28: Example Code Ch 09-6<br>Assume that Student, Employee
Q29: Example Code Ch 09-1<br>Consider the following class
Q30: Example Code Ch 09-2<br>Assume that Poodle is