Given the program, which of the following class member accesses are legal?

```
#include using namespace std;class
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...

List the six activities in the EBK to ensure that the digital forensics process is properly resourced and managed.

What will be an ideal response?

Computer Science & Information Technology

To follow a hyperlink in Word, you press and hold down the ________ key, and then click the hyperlink

A) Ctrl B) Alt C) Shift D) Command

Computer Science & Information Technology

What are the differences between if, if…else, and if..else if?

What will be an ideal response?

Computer Science & Information Technology

With electronic images of documents, such as PDF and XPS, users must have the software that created the original document in order to view the PDF or XPS file.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology