Asked by Poohboi
I have hard time doing this any help?
Rewrite the definition 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 data members. Add a method isleapyear to check wether a year is a leap year. Then, write a text program totest your class.
Rewrite the definition 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 data members. Add a method isleapyear to check wether a year is a leap year. Then, write a text program totest your class.
Answers
Answered by
Anonymous
Can you please post the full question
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.