Description: Check the leap year means class MyDate {private static int [] Months = new int [13] {0,31,28,31,30,31,30,31,31,30,31,30,31} private int year private int month private int day // public method to provide the service of external public MyDate () {year = 1900 month = 1 day = 1 } public MyDate (int year, int m, int d) { SetDate (year, m, d) } private void SetDate (int y, int m, int d) {this.year = CheckYear (y) this.month = CheckMonth (m this.day = CheckDay (d) }
To Search:
File list (Check if you may need any files):
mydate\mydate.cs
mydate