问题
单项选择题
给出下列的不完整的类代码,则哪个语句可以被加到横线处( )
class Person
String name,department;
int age;
public Person(String n)name=n;
public Person(String n,int s)name=n; age=a;
public Person(String n,String d,int a)
department=d;______
A.Person(n,a);
B.this(Person(n,a));
C.this(n,s);
D.this(name,age);
答案
参考答案:C