All language subtitles for 014 Actions_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
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

Objects can perform actions.

Fields work together to describe an object, a car as described by its milk price, year and color,

and based on the requirements, a car can also perform one action.

It can drive.

In this lesson, you're going to have to drive action to the car class.

So what is an action, an action is a method, a function, an action is a method that represents what

the object can do.

From the requirements, we found that a car can perform the drive action, so we need to drive action

to the car class.

So in the car class at a method called drive public, the method is not going to return anything.

It's called drive and it's not going to receive any parameters.

All right, now, every car object that you make from the car class can call the drive method pretty

cool.

And the drive method is going to print every field from the object that calls it as part of a nice string.

So we're going to print line.

You bought the beautiful.

This year.

Add some space.

This color.

Add some more space.

And print the make field of the current object.

And then we'll say for.

The price of the current object.

And after that, we'll say, please drive your car to the nearest exit.

Followed by a new line.

OK, I think it's time to remove these print statements, and I'm going to call the drive action from

the Nissan object.

And sure enough, it prints every field and the car essentially drives.

The object caused the drive method, Jabor runs the drive method.

This points to the current object that's calling the method and the method prints every field that describes

the current object.

I'm going to call this method from every object.

And sure enough, it prints every field from the object that calls it.

In this lesson, you added an action to your car class, an action describes what the object can do,

the requirements tell us that a car can drive.

So you added a drive method to the car class and now every car object can call that action.

And when called, it essentially prints every field that describes the current object as part of a nice

string.

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