Lecture overview -- Keyboard shortcut: 'u'  Previous page: The classes IntSet and StringSet -- Keyboard shortcut: 'p'  Next page: Problems -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Generic Types and Methods - slide 4 : 21

The class ObjectSet
A set of Objects fulfills all needs, but ...
set.cs
The class ObjectSet.
app.cs
A client of ObjectSet - working with sets of Die objects.
output
Output from the ObjectSet client program.
app-misc.cs
A client of ObjectSet - working with set of different types.
output-misc
Output from the the client of ObjectSet - the version that works with sets of different types.

Class ObjectSet is not type safe

Use of class Object as element type requires a lot of casting