Question: C + + please; Declare a class Calendar with the following members: An unsigned short instance member month, initialized to 0 by the constructor; A
C please;
Declare a class Calendar with the following members:
An unsigned short instance member month, initialized to by the constructor;
A string array static member monthNames, holding the names of the months full names, capitalized;
An instance member function getMonth that returns the value of month;
An instance member function nextMonth that takes no parameter, has no return value, and increases by the value of month; If month exceeds the number of months, it should start again from ;
An instance member function getMonthName that takes no parameter, and returns the corresponding string from monthNames.
Your task is only to write the header file Calendar.h
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
