多项选择题
public class Student {
int age;
String name;
public Student(int age){
this.age = age;
}
public Student(int age,String name){
this(age);
this.name = name;
}
}
对于Student类,如果想创建一个姓名为tom,年龄为10的对象,以下哪个选项可以实现() A.
Student stu = new Student( );
stu.age = 10;
stu.name = "tom"; B.
Student stu = new Student(10);
stu.name = "tom" C.
Student stu = new Student( 10, tom); D.
Student stu = new Student(10, "tom");