2.14.33.Based on the following code which of the following are true?
interface W { public void aMethod();
}
class Z implements W { public void 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.