-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCourse.java
70 lines (58 loc) · 1.43 KB
/
Course.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
58
59
60
61
62
63
64
65
66
67
68
69
70
package fypScheduling;
import java.util.List;
import java.io.Serializable;
import java.util.ArrayList;
public class Course implements Serializable{
private static int incID =0;
private int id;
private String courseNum;
private String courseName;
private int noOfLecs;
private int noOfTuts;
private int noOfLabs;
public Course(String courseNum, String courseName, int noOfLecs, int noOfTuts, int noOfLabs){
id = incID++;
this.courseNum = courseNum;
this.courseName = courseName;
this.noOfLecs = noOfLecs;
this.noOfTuts = noOfTuts;
this.noOfLabs = noOfLabs;
}
public int getId(){
return this.id;
}
public String getCourseNum() {
return courseNum;
}
public void setCourseNum(String courseNum) {
this.courseNum = courseNum;
}
public int getNoOfLecs() {
return noOfLecs;
}
public void setNoOfLecs(int noOfLecs) {
this.noOfLecs = noOfLecs;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public int getNoOfTuts() {
return noOfTuts;
}
public void setNoOfTuts(int noOfTuts) {
this.noOfTuts = noOfTuts;
}
public int getNoOfLabs() {
return noOfLabs;
}
public void setNoOfLabs(int noOfLabs) {
this.noOfLabs = noOfLabs;
}
public String toString(){
String result = this.id + "\t" + this.courseNum +"\t"+ this.noOfLecs +"\t"+ this.noOfTuts +"\t"+ this.noOfLabs +"\t"+ this.courseName ;
return result;
}
}