CS351L - Fall 2011

Large Program Design Lab


John Donahue

Email: jdonahue@unm.edu

Turning in work: use the turnin script

Office: FEC 126

Office Hours:

Monday 2-3pm

Wednesday 1 - 2pm


Generics

August 29th, 2011

Background

Generics allow you to write powerful and reusable code. To demonstrate this, we will be building a magic toolbox.

Specifications

  • Read the Generics lab writeup.
  • Download the MagicToolbox jar.
  • Resources

    Oracle tutorial on generics is a good place to learn more about generics

    Grading

    For full credit, fill in all inherited methods for UseTrackableWrapper and MagicToolbox

    Be sure to get a good handle on generics.

    They are very important and you will be seeing them a lot. Try looking at some of the utility classes such as ArrayList or Collections. Generics are what make these classes possible.