IAT806 Lecture 6 Objects and Array List

Veröffentlicht am: 08 Oktober 2020
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video IAT806 Lecture 6 Objects and Array List mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Chris Shaw 08 Oktober 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 87 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!