-->
当前位置:首页 > 题库

单选题:Given the following class definition which of the following can

Luz5年前 (2021-05-10)题库898
Given the following class definition which of the following can be legally placed after the comment line //Here ?@[D](2)
```Java
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);`




A.`MyOver m = new MyOver();`
B.`super(); `
C.`this("Hello",10);`
D.`Base b = new Base(10);`


答案:D