private问题
程序代码:
class Test{ private int[]age; public int[] getAge() { return age; } public void setAge(int[] age) { this.age = age; } }
在另一个类中怎么赋值给age[]
class Test{ private int[]age; public int[] getAge() { return age; } public void setAge(int[] age) { this.age = age; } }