找考题网-背景图
未分类题

class Person{ String name,department; int age; public Person(Stringn){name=n;} public Person(String n, int a){name=n;age=a;} publicPerson(String n,String d,int a){ doing the same as two argumentsversion of constructer including assignment name=n,age=a } } 下列哪一个选项可以添加到“doing the same....”处?()
APerson(n,a)
Bthis(Person(n,a))
Cthis(n,a)
Dthis(name,age

A....”处?()
APerson(n,a)
Bthis(Person(n,a))
Cthis(n,a)
Dthis(name,age


【参考答案】

参考C