Skip to content

Commit f03de6c

Browse files
add student.java file
1 parent f57ffa9 commit f03de6c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Student.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
public class Student{
2+
private String name;
3+
private int id;
4+
5+
public Student(String name, int id){
6+
this.name = name;
7+
this.id = id;
8+
}
9+
public String getName(){
10+
return name;
11+
}
12+
public int getId(){
13+
return id;
14+
}
15+
public void setName(String name){
16+
this.name = name;
17+
}
18+
public void setId(int id){
19+
this.id = id;
20+
}
21+
}

0 commit comments

Comments
 (0)