interface W {
publicvoid aMethod();
}
class Z implements W {
publicvoid aMethod() {
}
}
class X extends Z {
}
class Y extends Z {
}
A. An instance of class X can be cast to an instance of class Y.
B. An instance of class Y can be cast to An instance of class X.
C. An instance of class X can be cast to An instance of class Z.
D. An instance of class X can be cast to An instance of interface W.
E. An instance of class Y can be cast to An instance of interface W.
F. An instance of class Z can be cast to An instance of interface W.