Skip to content

Commit fd354a0

Browse files
committed
Added Student.java with getters, setters, constructors
1 parent 0ff2c06 commit fd354a0

File tree

1 file changed

+19
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)