forked from ghostwriternr/MLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDate.java
52 lines (43 loc) · 968 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
41
42
43
44
45
46
47
48
49
50
51
52
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mymlas;
/**
*
* @author ghost_000
*/
public class Date {
private int day_;
private int month_;
private int year_;
public Date(){
day_ = 1;
month_ = 1;
year_ = 2014;
}
public Date(int day,int month,int year){
day_ = day;
month_ = month;
year_ = year;
}
public int get_day() {
return day_;
}
public void set_day(int day) {
day_ = day;
}
public int get_month() {
return month_;
}
public void set_month(int month) {
month_ = month;
}
public int get_year() {
return year_;
}
public void set_year(int year) {
year_ = year;
}
}