请阅读下面的程序,程序的运行结果是()。 class Student{ String name; int age; public Student(){} public Student(String n, int a) { name = n; age = a; } public void show(){ System.out.print(name + “—” + age +” “); } } pub
单选题
请阅读下面的程序,程序的运行结果是()。 class Student{ String name; int age; public Student(){} public Student(String n, int a) { name = n; age = a; } public void show(){ System.out.print(name + “—” + age +” “); } } pub