IAT806 Lecture 6 Objects and Array List

Publicado em: 08 Outubro 2020
no canal de: Chris Shaw
87
0

IAT 806 Lecture 6 Objects and Array List by Chris Shaw

In this video, we start with the problem of representing a variable number of items in a Java Array.
We then introduce the Java Container Class ArrayList, which depends on Java's Object-Oriented
techniques of inheritance to store variable numbers of Objects of any class.
The video concludes with the code parts needed to build an ArrayList of Asteroids.

00:00 Objects and Array List
00:44 Agenda
01:15 Revisit or Rocket + Asteroids example
02:40 How do you manage a variable number of items in a Java Array?
02:58 Some solutions for Arrays with variable items
05:08 The Java SDK
06:46 ArrayList
08:48 Parent and child classes
13:34 Rocket Inheritance
15:04 Using ArrayList.add()
16:40 Getting things out of an ArrayList
17:42 Need to cast back from Object
19:43 Generics ArrayList
21:45 Asteroid Ryugu Sep 18, 2018
22:19 Pushing collision detection into the Asteroid
26:54 Destroying asteroids
30:32 Super and this
34:00 Summary


Nesta página do site você pode assistir ao vídeo on-line IAT806 Lecture 6 Objects and Array List duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Chris Shaw 08 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 87 vezes e gostou 0 espectadores. Boa visualização!