Question: how to change the if statement in the main into the private member function! help me explain it clear //Class with Private Members //Program to

how to change the if statement in the main into the private member function!
help me explain it clear  how to change the if statement in the main into the
private member function! help me explain it clear //Class with Private Members
//Program to demonstrate the class DayOfYear. #include using namespace std; class DayOfYear
public: void input(); void output(); void set(int newMonth, int new Day); //Mutator
functions to set or change the values of objects int get Month();

//Class with Private Members //Program to demonstrate the class DayOfYear. #include using namespace std; class DayOfYear public: void input(); void output(); void set(int newMonth, int new Day); //Mutator functions to set or change the values of objects int get Month(); //Accessor function: Returns the month, 1 for January, 2 for February, etc. int getDay(); //Accessor function: Returns the day of the month. private: void checkDate(); int month; int day; int main() DayOfYear today, Batman Birthday: cout > month; cout > day; checkDate(); void DayOfYear::output) cout 12) 11 (day 31)) cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!