30 likes | 63 Views
FOR MORE CLASSES VISIT<br>tutorialoutletdotcom <br><br>• J.. In this chapter, the class date'rype was designed to implement the date<br>• in a program, but the member fimction setDate and the constructor do<br>• not check whether the date is valid before storing the date in the data<br>• members. Rewrite the definitions of the fimction setDate and the con—<br>• structor so that the values far the month, day, and year are checked before<br>• storing the date into the data members. Add a fimction member,<br>
E N D
In Programming Exercise 2 • FOR MORE CLASSES VISIT • tutorialoutletdotcom • J.. In this chapter, the class date'rype was designed to implement the date • in a program, but the member fimctionsetDate and the constructor do • not check whether the date is valid before storing the date in the data • members. Rewrite the definitions of the fimctionsetDate and the con— • structor so that the values far the month, day, and year are checked before • storing the date into the data members. Add a fimction member,