Class Inheritance Correct Statements - Java Quiz Question


Given the following class hierarchy:
Which of the following statements is true.

X. Every B object is also an A object.
Y. Every A object is also a B object.


A
X and Y
B
X only
C
Y only
D
Neither X nor Y