Module [M09] - Generics
With this module, we go back to fundamental OOP tools offered by the Java language. This time, we will explore more advanced OOP concepts than in the first part of the course.
- Textbook Reading Assignments
-
The following sections of the textbook are assigned for this module.
- Chapter #19 – Generics
Module Learning Outcomes
In this module, you will develop further your programming skills as follows;
- Tracing
- Ability to read and trace Java programs leveraging Generics.
- Implementing
- Ability to write Java programs leveraging Generics.
- Testing
- Ability to develop tests for Java programs leveraging Generics.
- Debugging
- Ability to troubleshoot Java programs leveraging Generics.
- Designing
- Ability to design Java programs leveraging Generics.
These lecture recordings should go a bit more in-depth than the reading assignments. Use them to supplement the readings and go back to them after watching the videos. You should have a few questions to post on the forums :)
- Lecture - Bounded Type Parameters vs. Polymorphism
- Video Link: YouTube Slides: PDF
- Sanity checks are always a good thing. No need for an inception-style spinner though here. We are just going to ask ourselves whether this new technique we just learned about is something that we could have done without all along.
- B01 - Re-implementing GenericStack
- This exercise is #19.1 in the 10th edition of our text.
- B02 - Generic Maximum-Finding in 1D Arrays
- This exercise is #19.5 in the 10th edition of our text.
- B03 - Generic Maximum-Finding in 2D Arrays
- This exercise is #19.6 in the 10th edition of our text.
- B04 - Every day I am shuffle-in
- This exercise is #19.8 in the 10th edition of our text.
- B05 - ArrayList Sorter Method
- This exercise is #19.9 in the 10th edition of our text.