| 1 | package com.fastcampus.ch2; |
| 2 | |
| 3 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected