下面哪些是合法的语句(以下Panel、Applet和Frame类来自于java.awt包,请查阅相关的JavaDoc文档来了解它们是否有继承关系)?()
A. Object o = new String("abcd");
Boolean b = true;
C. Panel p = new Frame();
D. Applet a = new Panel();
E. Panel p = new Applet();
查看答案
请将以下程序补充完整。_______ class C {abstract void callme();void metoo {System.out.println(“类C的metoo()方法”);}}class D_______C {void callme() {System.out.println(“重载C类的callme()方法”);}}public class Abstract {public static void main(String args[]){}C c=__________D();c.callme();c.metoo();}}