Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
When you add a new feel to your class, you need to update the big three.
Think about it.
The Big Three are the constructor, which updates every field when you create an object getters which
let you get fields'.
And Setas, which let you update Fields'.
In this lesson, you're going to add an array field to your car class.
Here are the new requirements, there's been a change in plans now every car needs to come with spare
parts.
Spare parts is plural, so it has to be an array.
Based on the requirements, we need to add another field to the car class.
Now, every car object requires five fields, make price, year color and spare parts, which I'm just
going to call parts for short.
The car class needs to model every field in action, so add a string array, name parts.
And now every car object that you create from this car class is going to have Fifield's.
For now, remove the private keyword, we're going to put it back later and back in Maine, I'm going
to print the parts filled for Nissan.
It's no and I hope you can guess why you said Nissan equal to a new object of the car class you passed
and for arguments.
So whichever runs the constructor with four parameters.
The constructor only updates for fields and the parts field stays null.
For this reason, step one is to fix the constructor, we need to make sure it updates every single
field.
In this lesson, you added another feel to your car costs.
Now, each car object that you create from this car class is going to have by fields.
Whenever you add a new field, you need to update the big three.
And we're going to start with the constructor.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.