Java Programming the class Date was designed to implement the date in a the, but the method setDate and the constructor with parameters do not check whether the date is valid before storing the date in the data members. Rewrite the definitions of the method setDate and the constructor with parameters so that the values of month, day, and year are checked before storing the date into the datamembers. Add amethod isLeapYear to check whether a year is a leap year. Then, write a test program to test your class. plz write in java not c++
Get Free Quote!
442 Experts Online