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 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
Q3: Which of the following is not a
Q4: In order to determine the type that
Q9: For the questions below, consider the following
Q11: For the questions below, use the following
Q15: The instruction super( ); does which of
Q17: Aside from permitting inheritance, the visibility modifier
Q18: If a programmer writes a class wanting
Q21: Abstract methods are used when defining
A) interface
Q24: Java does not support multiple inheritance but
Q31: All classes in Java are directly or
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents