All language subtitles for 001 Inheritance_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

Original subtitles

A class can inherit properties from another class.

Every class in Java has a common ancestor, the object class.

In this lesson, you're going to learn about inheritance.

The object class is the ancestor of every class.

Every class inherits methods from the object class.

Here's the source code for the object class, it's a bit hard to read on the website, so I cleaned

it up for you.

So please open the folder for this lesson by navigating that this path and the resources.

You'll notice inside the object class there's an equals method.

Remember when I used to say that default equals method compares the references of two variables?

This is the equals method I've been talking about.

There's also a two string method.

A harsh code method and a bunch of other methods.

Get class, notify, notify all that in overloads, the wait method three times, remember that overloading

means defining the same method more than once, but with different parameters.

And I commented these methods for simplicity.

OK, now what I want you to do is add another folder to your workspace.

So follow what I'm doing.

And grab the folder that corresponds to this path in the resources.

OK, before we continue, I want to repeat that the object class is the common ancestor of every class,

so every class inherits methods from the object class.

Inside may create a new object of the person, class, person, person is equal to a new person.

Zach.

Who's 27?

Now, from person noticed that we can automatically access so many methods, we can access an equals

method, a hash code method, a two string method, wait, notify get class.

But we didn't define any of these methods in the person class.

So where did they come from?

These methods came from the object class, because object is the common ancestor of every class, then

every class person is going to inherit all of its methods.

Here is equals.

Here's to string.

There is a code.

Get class, etc. This is inheritance.

Let's recap, a class can inherit properties from another class.

The object class is the common ancestor of every class, so every class inherits methods from the object

class.

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