-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReminder.java
More file actions
38 lines (26 loc) · 745 Bytes
/
Copy pathReminder.java
File metadata and controls
38 lines (26 loc) · 745 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
import java.util.Calendar;
/**
* @author michelle chan
*
*This class is extended from BaseObj
*/
public class Reminder extends BaseObj{
/**
* This is a constructor without any parameters. It will set the name of the CSV file to store and read the reminder.
*/
public Reminder() {
super(".\\reminder.csv");
}
/**
* @param name
* @param startDate
* @param endDate
* @param time
*
* This constructor consists of 4 parameters: name, startDate, endDate, time
* These parameters will be set to the superclass variables (the file name will not change)
*/
public Reminder(String name, Calendar startDate, Calendar endDate, String time) {
super(name, startDate, endDate, time, ".\\reminder.csv");
}
}