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 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
What are good colleges to apply to if you got like a 2.5 as a gpa? already got a call back from gcu at least its a start rt
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
Mathematics, 16.10.2021 01:00
question
Mathematics, 16.10.2021 01:00
question
Mathematics, 16.10.2021 01:00
question
History, 16.10.2021 01:00
Questions on the website: 13722362