In Programming Exercise 2 - PowerPoint PPT Presentation

About This Presentation
Title:

In Programming Exercise 2

Description:

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 fimction setDate and the constructor do • not check whether the date is valid before storing the date in the data • members. Rewrite the definitions of the fimction setDate and the con— – PowerPoint PPT presentation

Number of Views:2
Slides: 4
Provided by: Goldsz

less

Transcript and Presenter's Notes

Title: In Programming Exercise 2


1
EDUCATIONAL COURSESTUTORIALOUTLET
2
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 ?mction setDate and
    the constructor do
  • not check whether the date is valid before
    storing the date in the data
  • members. Rewrite the de?nitions of the ?mction
    setDate 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
    ?mction member,

3
EDUCATIONAL COURSES TUTORIALOUTLET
Write a Comment
User Comments (0)
About PowerShow.com