IAT806 Lecture 6 Objects and Array List

Published: 08 October 2020
on channel: 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


On this page of the site you can watch the video online IAT806 Lecture 6 Objects and Array List with a duration of hours minute second in good quality, which was uploaded by the user Chris Shaw 08 October 2020, share the link with friends and acquaintances, this video has already been watched 87 times on youtube and it was liked by 0 viewers. Enjoy your viewing!