Did you get private string friends, if so good work. If not, it's okay, you'll
get more practice. And if you called this something other than friends, that's
fine as long as it means something similar. The next step right now is to learn
how the instance variables get their initial values and how they're updated.
Let's watch it for the car, and then we'll come back to the Person class.
¿Obtuvieron privado Cadena amigos? Si es así, buen trabajo. Si no, no se preocupen, seguirán
practicando. Y si le pusieron a esto un nombre distinto a amigos, está
bien, siempre y cuando signifique algo similar. El siguiente paso ahora es aprender
cómo las variables de instancia obtienen sus valores iniciales y cómo se actualizan.
Vamos a verlo para Coche y luego volveremos a la clase Persona.
Avez-vous obtenu private String friends?
Si oui, bon boulot.
Si non, aucun problème,
vous aurez plus de pratique.
Si vous appelez ça
autre chose que amis,
c'est bon, tant que ça veut
dire quelque chose de semblable.
La prochaine étape consiste à apprendre
comment les variables d'instance
obtiennent leurs valeurs initiales et
comment elles sont mises à jour.
Regardons-le pour la voiture, puis
nous reviendrons à la classe person.
private String friends;と
なればよくできました
違っていても練習すれば大丈夫です
ここにfriendsとは違う名前をつけていても
似たような意味であれば問題ありません
では次にインスタンス変数が初期値を得る方法と
更新の方法を学びます
車の例題を見たあとでPersonクラスに戻ってきます
저와 답이 같나요? 그럼 정말 잘했습니다. 틀려도 괜찮습니다. 연습
조금만 더 하면 잘합니다. 그리고 변수명을 friend로 안해도 friend를 뜻하는
변수명을 줬다면 괜찮습니다. 다음 시간에는 인스턴스 변수들에 값을
저장하는 것과 값을 업데이트 시키는 것을 배울 겁니다.
car 클래스에서 먼저 해본 후에 person 클래스에서 해봅시다.
Heb je private String friends gekregen?
Zo ja, proficiat.
Zo niet, dat geeft niet,
je krijgt meer oefening.
En als je dit iets anders
dan friends noemt,
is dat prima zolang het iets
soortgelijks betekent.
De volgende stap is om te leren
hoe de instantievariabelen
hun beginwaarden krijgen en
hoe ze worden bijgewerkt.
Laten we het voor de auto bekijken en dan
komen we terug bij de persoonsklasse.
Bạn điền là private string friends phải không, làm tốt lắm. Nếu không phải, không sao,
bạn sẽ được luyện tập thêm. Và nếu bạn đã gọi cái này không phải là friends,
cũng ổn thôi, miễn là nó có nghĩa tương tự. Bước tiếp theo bây giờ sẽ là
học cách các instance variables có được giá trị khởi tạo của chúng, và cách chúng được update.
Hãy xem trước với cái xe, và sau đó ta sẽ q uay lại tới Person class.