Skip to content

Commit 693063c

Browse files
Add Student.java with getters, setters, constructor
1 parent ede37bd commit 693063c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Student.java

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

0 commit comments

Comments
 (0)