-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSubject.java
54 lines (45 loc) · 1.11 KB
/
Subject.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
package dynamicTT;
public class Subject {
private int subjectID;
private String subjectName;
private int numberOfLecturesPerWeek;
private boolean islab;
private String department;
Subject(int id, String name, int lectures, boolean lab, String dept){
this.subjectID=id;
this.subjectName=name;
this.numberOfLecturesPerWeek=lectures;
this.islab=lab;
this.department=dept;
}
public String getSubjectName() {
return subjectName;
}
public void setSubjectName(String subjectName) {
this.subjectName = subjectName;
}
public int getNumberOfLecturesPerWeek() {
return numberOfLecturesPerWeek;
}
public void setNumberOfLecturesPerWeek(int numberOfLecturesPerWeek) {
this.numberOfLecturesPerWeek = numberOfLecturesPerWeek;
}
public int getSubjectID() {
return subjectID;
}
public void setSubjectID(int subjectID) {
this.subjectID = subjectID;
}
public boolean isIslab() {
return islab;
}
public void setIslab(boolean islab) {
this.islab = islab;
}
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
}