本帖最后由 刘圣伟 于 2012-8-18 11:02 编辑
class Test5{
public static void main(String[] args){
show();
}
public static void show(int...arr){
System.out.println(arr.length);
}
}
abstract class Student {
private String age;
private String name;
public Student(String name,String age ){
this.name = name;
this.age = age ;
}
}
class per extends Student{
public per(String name, String age) {
super(name, age);
// TODO Auto-generated constructor stub
}
}
class per2 extends Student{
public per2(String name, String age) {
super(name, age);
// TODO Auto-generated constructor stub
}
}
|