Given the program, which of the following class member accesses are legal?
```
#include
DayOfYear{public: void input(); void output(); int
month; int day;};int main(){ DayOfYear birthDay;
birthDay.input(); // a) birthDay.day = 25;
// b)
cout << birthDay.month; // c)
cout << birthDay.output(); // d)
if(birthDay.month == 1) // e)
cout <<
```
All of them are legal. Everything is pubic now, so any function can access
any member
Computer Science & Information Technology
You might also like to view...
The Microsoft ________ is a cloud computing platform offering a variety of features and services to individuals and businesses
A) Outlook Live B) OneDrive C) Silverlight D) Azure Marketplace
Computer Science & Information Technology
A route table has two sections: the active routes and the ____.?
A. ?close routes B. ?active connections C. ?alternate routes D. ?passive routes
Computer Science & Information Technology