-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCourse.java
More file actions
70 lines (57 loc) · 1.85 KB
/
Course.java
File metadata and controls
70 lines (57 loc) · 1.85 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
package com.company;
public class Course {
private String courseId; //课程ID
private String courseName; //课程名称
private String courseMajor; //专业
private String courseClass; //班级
private String time1; //理论课时
private String time2; //实验课时
private int teacherID; //任课教师ID
private String teacherName; //任课教师姓名
public Course() {
}
public Course(String courseId, String courseName, String courseMajor, String courseClass, int teacherID, String teacherName) {
this.courseId = courseId;
this.courseName = courseName;
this.courseMajor = courseMajor;
this.courseClass = courseClass;
this.teacherID = teacherID;
this.teacherName = teacherName;
this.time1 = "";
this.time2 = "";
}
public Course(String courseId, String courseName, String courseMajor, String courseClass, String time1, String time2, int teacherID, String teacherName) {
this.courseId = courseId;
this.courseName = courseName;
this.courseMajor = courseMajor;
this.courseClass = courseClass;
this.time1 = time1;
this.time2 = time2;
this.teacherID = teacherID;
this.teacherName = teacherName;
}
public String getCourseId() {
return courseId;
}
public String getCourseName() {
return courseName;
}
public String getCourseMajor() {
return courseMajor;
}
public String getCourseClass() {
return courseClass;
}
public String getTime1() {
return time1;
}
public String getTime2() {
return time2;
}
public int getTeacherID() {
return teacherID;
}
public String getTeacherName() {
return teacherName;
}
}