問答題

在以下代碼中,下列哪句可以放在//Here處?class Base{ public Base(int i){} } public class MyOver extends Base{ public static void main(String arg[]){ MyOver m = new MyOver(10); } MyOver(int i){ super(i); } MyOver(String s, int i){ this(i); //Here } }
A、MyOver m = new MyOver();
B、super();
C、this("Hello",10);
D、Base b = new Base(10);

答案: C
微信掃碼免費搜題