-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCourses.java
More file actions
86 lines (81 loc) · 1.89 KB
/
Courses.java
File metadata and controls
86 lines (81 loc) · 1.89 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import java.io.Serializable;
import java.util.List;
public class Courses implements Serializable{
private static final long serialVersionUID = 1L;
private String title;
private String room;
private String number;
private Integer CRN;
private Integer credits;
private TextBook textBook;
private Faculty faculty;
List<Student> roster;
public Courses(String title, String room, String number, Integer cRN,
Integer credits, TextBook textBook, Faculty faculty,
List<Student> roster) {
this.title = title;
this.room = room;
this.number = number;
this.CRN = cRN;
this.credits = credits;
this.textBook = textBook;
this.faculty = faculty;
this.roster = roster;
}
public Courses(String title){this.title = title;}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getRoom() {
return room;
}
public void setRoom(String room) {
this.room = room;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public Integer getCRN() {
return CRN;
}
public void setCRN(Integer cRN) {
CRN = cRN;
}
public Integer getCredits() {
return credits;
}
public void setCredits(Integer credits) {
this.credits = credits;
}
public TextBook getTextBook() {
return textBook;
}
public void setTextBook(TextBook textBook) {
this.textBook = textBook;
}
public Faculty getFaculty() {
return faculty;
}
public void setFaculty(Faculty faculty) {
this.faculty = faculty;
}
public List<Student> getRoster() {
return roster;
}
public void setRoster(List<Student> roster) {
this.roster = roster;
}
@Override
public String toString() {
return "Course [title=" + title + ", room=" + room + ", number="
+ number + ", CRN=" + CRN + ", credits=" + credits
+ ", textBook=" + textBook + ", faculty=" + faculty
+ ", roster=" + roster + "]";
}
}