-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCourse.java
More file actions
63 lines (56 loc) · 1.09 KB
/
Course.java
File metadata and controls
63 lines (56 loc) · 1.09 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
package com.company;
import java.util.Vector;
public class Course
{
private int credit_hr;
private String name;
private String code;
Semester sem;
Vector<Section> sections = null;
Vector<evaluation> eva;
public Course()
{}
public Course(int c, String n, String co, Semester s)
{
credit_hr = c;
name = n;
code = co;
sem = s;
}
public Vector<Section> getSec()
{
return sections;
}
public void addSection(Section s)
{
sections.insertElementAt(s, sections.size());
}
public void setSem(Semester s)
{
sem =s;
}
public void setEva(Vector<evaluation> s)
{
eva = s;
}
public Semester getSem()
{
return sem;
}
public String getName()
{
return name;
}
public String getCourseCode()
{
return code;
}
public int getCreditHour()
{
return credit_hr;
}
public void print()
{
System.out.println("Code: " + code + " Name: " + name + "Credit Hour: " + credit_hr);
}
}