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
Sur cette page du site, vous pouvez voir la vidéo en ligne IAT806 Lecture 6 Objects and Array List durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Chris Shaw 08 octobre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 87 fois et il a aimé 0 téléspectateurs. Bon visionnage!