You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
810 B
40 lines
810 B
public class Student {
|
|
private String name;
|
|
private int age;
|
|
private String studentId;
|
|
|
|
public Student(String name, int age, String studentId) {
|
|
this.name = name;
|
|
this.age = age;
|
|
this.studentId = studentId;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public int getAge() {
|
|
return age;
|
|
}
|
|
|
|
public void setAge(int age) {
|
|
this.age = age;
|
|
}
|
|
|
|
public String getStudentId() {
|
|
return studentId;
|
|
}
|
|
|
|
public void setStudentId(String studentId) {
|
|
this.studentId = studentId;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Student{name='" + name + "', age=" + age + ", studentId='" + studentId + "'}";
|
|
}
|
|
}
|
|
|