00:01
Okay, so here we have a question pulled from barron's ap computer science 7th edition.
00:06
We're given the date class on the right here that has three properties, day, month, and year.
00:13
We have the default constructor and regular constructor that passes all three arguments and then the getters for each.
00:19
And then a print statement at the end that just plainly prints out the date's actual date in the format of month, date, year.
00:29
And here in the question we're actually asked, here the client program is using the date objects class and what's going to happen is the first method within birthday stuff is going to utilize a date object for find birthdate and it's just going to return the birthdate.
00:48
And then the second method is going to be public static void.
00:53
That's just going to be what's called in the actual client program here and it's going to store the date with a find birthdate method and just use it as its instance variable.
01:06
And so the question's asking, which of the following is the correct replacement for code to get birthdate? so this block right here is what we're wondering what to put in place.
01:19
So we have a couple options here.
01:23
One has just a system out with the enter birthdate with the month, day, and year.
01:29
And the looks to be the most correct so far just based on each of the statement lines.
01:36
Firstly it asks the user for the input...