Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

lupposed we have the following class elasa Date [ privatel Int month, day, year:

ID: 3903687 • Letter: L

Question

lupposed we have the following class elasa Date [ privatel Int month, day, year: publier Date () (month-1: day-1; year-2000;) bate (int m, int d, int y) month-m; dayed: year y:) What is wrong with the following function Date newdate () Date d: cout d.month >> d.day >> d.year zeturn d: You cannot return an object from a function. The value that is being returned does not have the correct retum type You are accessing private variables by saying oin >> d.month> There is nothing wrong with the function

Explanation / Answer

The correct option is option 3
we can not have cin >> d.day....with private members