1class Date
2{
3public:
4Date(); // Constructor without parameters
5Date(int m, int d, int y); // Constructor with parameters.
6
7// accessors
8int GetMonth(); // returns the size of the diamond
9int GetDay();
10int GetYear();
11
12// mutators
13bool Set(int m, int d, int y);
14bool SetFormat(char f);
15
16// standard input and output routines
17void Input();
18void Show();
19void Increment(int numDays = 1);
20int Compare(const Date& d);
21
22private:
23int month, // month variables
24 day, // day variable
25 year; // year variable
26char format;
27};
28