public class Student { private int no; private String name; private int age; public Student(int no, String name, int age) { // 带参数的构造方法 this.name=name; this.no=no; this.age=age; } public int getNo() { return no; } public void setNo(int no) { this.no…