-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathClass.java
149 lines (135 loc) · 3.06 KB
/
Class.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/**
* Class is a class to store values of Classes in
* your schedule such as:
* -Start Time
* -End Time
* -Name
* -Professor
* -Credits
* @author Josh Cohen
* @version 1.01
*/
public class Class
{
public String name;
public String professor;
public String beginningTime;
public String endingTime;
public int credits;
public String day;
/**
* Initializes new Class with a given name, professor, beginning Time
* and ending Time.
*
* @param name name of Class
* @param professor professor of Class
* @param beginningTime start time of class
* @param endingTime end time of class
*/
public Class(String name, String professor, String beginningTime,
String endingTime, int credits, String day)
{
this.name = name;
this.professor = professor;
this.beginningTime = beginningTime;
this.endingTime = endingTime;
this.credits = credits;
this.day = day;
}
/**
* gets the day of the Class
* @return day of the Class
*/
public String getDay()
{
return day;
}
/**
* sets the day of the Class
* @param day day to be set of the Class
*/
public void setDay(String day)
{
this.day = day;
}
/**
* gets name of Class
* @return name of the class
*/
public String getName()
{
return name;
}
/**
* sets the name of the Class
* @param name name of the Class
*/
public void setName(String name)
{
this.name = name;
}
/**
* gets the professor of the Class
* @return the professor of the Class
*/
public String getProfessor()
{
return professor;
}
/**
* sets the Professor of the Class
* @param professor professor of the Class
*/
public void setProfessor(String professor)
{
this.professor = professor;
}
/**
* gets the start time of the Class
* @return start time of the Class
*/
public String getBeginningTime()
{
return beginningTime;
}
/**
* sets the start time of the Class
* @param beginningTime start time of the Class
*/
public void setBeginningTime(String beginningTime)
{
this.beginningTime = beginningTime;
}
/**
* gets the end time of the Class
* @return the end time of the Class
*/
public String getEndingTime()
{
return endingTime;
}
/**
* sets the end time of the Class
* @param endingTime end time of the class
*/
public void setEndingTime(String endingTime)
{
this.endingTime = endingTime;
}
/**
* get the number of credits in the Class
* @return the number of credits
*/
public int getCredits()
{
return credits;
}
/**
* sets the number of credits for the Class
* @param credits number of credits in the Class
*/
public void setCredits(int credits)
{
this.credits = credits;
}
}