Skip to content

Commit 373bca8

Browse files
committed
Add Student.java with getters/setters/constructors
1 parent f57ffa9 commit 373bca8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

myaddition/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() {}
6+
public Student(String name, int id) { this.name = name; this.id = id; }
7+
8+
public String getName() { return name; }
9+
public void setName(String name) { this.name = name; }
10+
public int getId() { return id; }
11+
public void setId(int id) { this.id = id; }
12+
}

0 commit comments

Comments
 (0)