-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent.java
57 lines (45 loc) · 1.29 KB
/
Student.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class Student {
public int rollNumber;
public String name;
public int physicsMarks;
public int chemistryMarks;
public int mathsMarks;
public Student() {}
public Student(int rollNumber, String name, int physicsMarks, int chemistryMarks, int mathsMarks) {
this.rollNumber = rollNumber;
this.name = name;
this.physicsMarks = physicsMarks;
this.chemistryMarks = chemistryMarks;
this.mathsMarks = mathsMarks;
}
public void setRollNumber(int rollNumber) {
this.rollNumber = rollNumber;
}
public int getRollNumber() {
return this.rollNumber;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setPhysicsMarks(int physicsMarks) {
this.physicsMarks = physicsMarks;
}
public int getPhysicsMarks() {
return this.physicsMarks;
}
public void setChemistryMarks(int chemistryMarks) {
this.chemistryMarks = chemistryMarks;
}
public int getChemistryMarks() {
return this.chemistryMarks;
}
public void setMathsMarks(int mathsMarks) {
this.mathsMarks = mathsMarks;
}
public int getMathsMarks() {
return this.mathsMarks;
}
}