subject

Write a Date class that contains 3 integer data members (month, day, year) along with the appropriate methods (functions) that would allow you to write a main function that does the following: Declare a date called today, that contains today’s date: 2, 11, 2019 Declare a date called tomorrow but don’t send it any data values. Call the setValues() method on tomorrow to set tomorrow’s date. Write a C++ print statement to print the following to the screen: today’s day is 11 tomorrow’s day is 12 Declare a date called yesterday but don’t send it any data values. Call the setDay() method on yesterday to set yesterday’s day to 10. Write a C++ print statement to print the following to the screen: yesterday’s day was 10 Add a C++ print statement to the destructor that simply says "inside destructor". Add a C++ print statement to your constructor(s) that says which constructor is being invoked. You should have 3 files when you are done: 1. Date. h 2. Date. cpp 3. mainDriver1.cpp

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
You know the right answer?
Write a Date class that contains 3 integer data members (month, day, year) along with the appropriat...
Questions
question
Social Studies, 20.02.2020 17:10
Questions on the website: 13722362