-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCourse.java
More file actions
60 lines (44 loc) · 994 Bytes
/
Course.java
File metadata and controls
60 lines (44 loc) · 994 Bytes
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
package com.gradeslate.gradeslate;
public class Course {
private Bookbag knapsack= new Bookbag();
private Grades grades = new Grades();
private Professor prof;
private String title;
private int credHour = 0;
private String description;
/********************
*
* adding times for labs, tests, assignments and other
*/
Course(String title, int time, int credHour){
this.title = title;
this.credHour = credHour;
}
public void setProf(String name){
prof = new Professor(name);
}
public Professor getProf(){
return prof;
}
public Grades getGrades(){
return grades;
}
public Bookbag getBag(){
return knapsack;
}
public String getTitle(){
return title;
}
public void inDes(String des){
this.description = des;
}
public String getDes(){
return description;
}
public char letGrd(){
return grades.getLetGrd();
}
public int getCredHour(){
return credHour;
}
}