Java Programming the class Date was designed to implement the date in a the, but the method setDate and the constructor with parameters do

computer science

Description

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++


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.