All language subtitles for 009 Java Code Generators_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,370 --> 00:00:04,580 In this lesson, you will generate getters and setters. 2 00:00:06,330 --> 00:00:12,810 Go to the extension's marketplace, and then there look for the Java code generators extension. 3 00:00:13,170 --> 00:00:16,890 Once you do install it, enable it, do whatever you have to do. 4 00:00:16,920 --> 00:00:19,770 I already have it installed and enabled. 5 00:00:20,220 --> 00:00:24,150 And just to be on the safe side, close your editor and re-open it. 6 00:00:25,720 --> 00:00:26,620 Once you do. 7 00:00:27,710 --> 00:00:34,460 Well, we're going to do is delete all of the getters and setters that we've made so far. 8 00:00:36,460 --> 00:00:44,890 And now we can just right click, say, Java code generators and click on Generate Getters and Setters. 9 00:00:47,980 --> 00:00:53,890 And now you'll notice that when you generate your gutters, it uses this make when you really don't 10 00:00:53,890 --> 00:00:54,550 need to. 11 00:00:55,620 --> 00:01:00,870 Because the purpose of this is to distinguish between the field of the current object that's calling 12 00:01:00,870 --> 00:01:03,990 this method and the parameter that gets passed in. 13 00:01:04,920 --> 00:01:05,310 Here. 14 00:01:05,310 --> 00:01:11,250 If you just say return make, it's automatically going to return the field of the current object calls 15 00:01:11,250 --> 00:01:11,990 get make. 16 00:01:12,000 --> 00:01:17,970 But it's also a good practice to put the this keyword anyway so you can remove the this keyword you 17 00:01:17,970 --> 00:01:18,450 can leave. 18 00:01:18,450 --> 00:01:23,580 It doesn't really matter in this context, but because that's what was generated, we're going to leave 19 00:01:23,580 --> 00:01:23,910 it. 20 00:01:24,510 --> 00:01:31,620 That being said, I am rarely ever going to use the Java code generators extension in this course because 21 00:01:31,620 --> 00:01:35,880 I want you to get used to writing your own getters and setters. 22 00:01:35,880 --> 00:01:37,620 I think it's really good practice. 23 00:01:37,620 --> 00:01:43,740 So this will probably be the last time that you see me using the code generators extension, but if 24 00:01:43,740 --> 00:01:46,890 you really want to use it yourself, then knock yourself out. 25 00:01:47,900 --> 00:01:50,990 In this lesson you generated getters and setters. 2475

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.