00:01
We're asked to consider the following code fragment, which is classes of states, regions, and, sorry, states, which is objects.
00:15
And we, so it's taken from a package, right, and we're asked what the output of calling the main method on the maryland class would, essentially, would return, right? with that what would output be? so calling the main method on the maryland class.
00:37
So first we have region east is a state, and then we have state md is maryland.
00:42
Object is a new place, and place usa is a region.
00:46
So first thing that would happen, first output, is read it.
00:50
So that's from md .printme is the first call that we have.
00:56
And since md is an object for a type maryland, and we would use that print me statement, so that would return to us read it.
01:06
So that's the first output.
01:09
Then we would have east .print me, which is the second one.
01:19
And east is an object of type state, so we would print, ship it...