为使下列代码正常运行,应该在下划线处填入的选项是:
abstract class Person{
public Person(String n){
name=n;
}
public____String getDescription();
public String getName(){
return name;
}
private String name;
}
Astatic
Bprivate
Cabstract
Dfinal
相关试题
-
为使下列代码正常运行,应该在下划线处填入的选项是: abstract class Person{ public Person(String n){ name=n; }
-
t类,构造函数对其属性Name进行赋值操作,请在下划线处填充正确代码。class Student { private string name;
-
根据以下代码,描述正确的是() public class Student { private string name; public string Name
-
etName(string name) {this->name=name; } string getName(){return name;}void sendMessage(string messag
-
public void setName(String name) { this.name = name;}public User(String name) { (1) =name;}public