Question: Complete the following code skeleton to declare a class called Date. The class should contain member variables and functions to store and retrieve the member
Complete the following code skeleton to declare a class called Date. The class should contain member variables and functions to store and retrieve the member variables month, day, and year components of a date.
The function that store data should be called storeDate() and should have the parameters of M, D, Y.
The function showDate() should output to the screen the member variables month, day, and year.
class Date {
private:
public:
}
Step by Step Solution
3.43 Rating (162 Votes )
There are 3 Steps involved in it
Heres the completed code skeleton for the Date class class ... View full answer
Get step-by-step solutions from verified subject matter experts
