Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,270 --> 00:00:03,000
Two strange returns, a string that describes the object.
2
00:00:06,000 --> 00:00:11,970
In this lesson learned at a tutoring method to each child class inside the short class, auto generated
3
00:00:11,970 --> 00:00:12,720
tutoring method.
4
00:00:16,040 --> 00:00:17,390
I'll copy this three times.
5
00:00:19,980 --> 00:00:21,480
Change the following words.
6
00:00:27,630 --> 00:00:33,840
And we're going to add to this to string the result from calling get price superdog that color.
7
00:00:35,300 --> 00:00:36,740
And Superdog Brend.
8
00:00:40,270 --> 00:00:42,040
OK, let's print one of the objects.
9
00:00:54,520 --> 00:00:55,420
At a break point.
10
00:00:56,650 --> 00:00:57,670
Debug the runtime.
11
00:01:02,860 --> 00:01:07,030
We already know that Java internally calls the tutoring method when you print an object.
12
00:01:13,540 --> 00:01:19,720
Get size calls the local GETER, which returns the size field of the current object, calling this method.
13
00:01:20,720 --> 00:01:26,330
Super refers to the super class, the parent class, so super doget price is going to call the get price
14
00:01:26,330 --> 00:01:27,890
method inside the parent class.
15
00:01:32,300 --> 00:01:36,950
Get price returns, the price field of the current object that's calling this method.
16
00:01:42,570 --> 00:01:46,260
Superdog, that color is going to call the get color method inside the parent class.
17
00:01:47,390 --> 00:01:51,740
Get color returned to the color field of the current object that's calling this method.
18
00:01:56,510 --> 00:02:00,260
Superdog brand is going to call the get brand method inside the parent class.
19
00:02:03,840 --> 00:02:08,280
Get brands returned to the brand field of the current object that's calling this method.
20
00:02:16,180 --> 00:02:18,970
And now we have a nice string that describes the object.
21
00:02:32,200 --> 00:02:34,420
Let's just do the same thing inside the pants class.
22
00:02:35,610 --> 00:02:37,470
Auto generate the two string method.
23
00:02:44,310 --> 00:02:48,630
And the tutoring method needs to fully describe the object, so we're going to add to the string the
24
00:02:48,630 --> 00:02:50,940
result from calling Superdog get price.
25
00:02:54,150 --> 00:02:55,410
Superdog, that color.
26
00:02:57,720 --> 00:02:59,070
Superdog at Brand.
27
00:03:08,330 --> 00:03:09,470
And we should be good.
28
00:03:12,260 --> 00:03:15,020
You added a two string method to each child class.
2632
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.