今天刚学的super、this,有一道作业题请各位大神指点啊
请选择合适的选项填在下面横线处: 下面程序的运行结果为:rose class Father{ String name; public Father(String name){ _________ this.name = name; System.out.println(name); } } class Son extends Father{ static String name = "rose"; public Son(String name){ ___________ } public Son(){ __________ } } class Demo1{ public static void main(String[] args) { new Son(); } }
A.this B.super C.this(); D.super(); E.this(name); F.super(name); 求教各位大神最后两处该选什么啊?如果运行的话后两个貌似要选FF,可是不太懂啊,求大神解释下
|