The class date was designed to implement the date in a


the class Date was designed to implement the date in a program, but the method setDate and the constructor with parameters do not check whether the date is valid before storing the date in the data member. Rewrite the definition of the method setDate and the constructor with parameters so that the values o month, day, and year are checked before storing the date into the data members. Add a method isLeapYear to check whether a year is a leap year. Then, write a test program to test your clock

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The class date was designed to implement the date in a
Reference No:- TGS0568974

Expected delivery within 24 Hours