MCPcopy Create free account
hub / github.com/castello/spring_basic / MyDate

Class MyDate

ch2/MyDate.java:3–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.fastcampus.ch2;
2
3public class MyDate {
4 private int year;
5 private int month;
6 private int day;
7
8 public int getYear() {
9 return year;
10 }
11
12 public void setYear(int year) {
13 this.year = year;
14 }
15
16 public int getMonth() {
17 return month;
18 }
19
20 public void setMonth(int month) {
21 this.month = month;
22 }
23
24 public int getDay() {
25 return day;
26 }
27
28 public void setDay(int day) {
29 this.day = day;
30 }
31
32 @Override
33 public String toString() {
34 return String.format("[year=%d, month=%d, day=%d]", year, month, day);
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected