javaSE(七)

1.对象数组 类的有参构造构造出对象,将对象存储在数组中。 案例代码: Student[] arr = new Student[5]; arr[0] = new Student("张一", 11); arr[1] = new Student("张二", 12); arr[2] = new Student("张三", 13); arr[3] = new Student("张四", 1
相关文章
相关标签/搜索