给出下面的不完整的类代码 class Person{ String name,department; int age; public Person(String n,int a){ name = n; age = a; } public Person(String n,String d,int a){ _____//添加代码___________ department =d; } }
主观题
给出下面的不完整的类代码 class Person{ String name,department; int age; public Person(String n,int a){ name = n; age = a; } public Person(String n,String d,int a){ _____//添加代码___________ department =d; } }