-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDate.java
40 lines (39 loc) · 908 Bytes
/
Date.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
/**
* Date.java
* @author martin ituarte hernandez, Justin Rittmeyer, Ben Bousquet, Andrew Kuhl and Vikram Dattatri
* @since 12-1-20
* @version 17.2 build version 2
*/
/**
* Date class which stores the private variables
* @return nothing
*/
public class Date {
// setting up private variables
private String month;
private String day;
/**
* Date method which stores parameters in the method for later use.
* @Param String month, String day
*/
public Date (String month, String day) {
//assigning parameter month to month instance for later use
this.month = month;
//assigning parameter day to day instance for later use
this.day = day;
}
/**
* getter method for month
* @return this.month
*/
public String getMonth() {
return this.month;
}
/**
* getter method for day
* @return this.day
*/
public String getDay() {
return this.day;
}
}