We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff2c06 commit 984adccCopy full SHA for 984adcc
src/main/java/Student/Student.java
@@ -0,0 +1,37 @@
1
+package Student;
2
+
3
+public class Student {
4
+ private String name;
5
+ private int roll;
6
+ private String dept;
7
8
+ // Setter for name
9
+ public void setName(String name) {
10
+ this.name = name;
11
+ }
12
13
+ // Getter for name
14
+ public String getName() {
15
+ return this.name;
16
17
18
+ // Setter for Roll
19
+ public void setRoll(int roll){
20
+ this.roll=roll;
21
22
23
+ // Getter for Roll
24
+ public int getRoll(){
25
+ return this.roll;
26
27
28
+ // Setter for Department
29
+ public void setDept(String dept){
30
+ this.dept=dept;
31
32
33
+ // Getter for Department
34
+ public String getDept(){
35
+ return this.dept;
36
37
+}
0 commit comments