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

1 Expert Approved Answer
Step: 1 Unlock

Heres the completed code skeleton for the Date class class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!