Lecture overview -- Keyboard shortcut: 'u'  Previous page: Generic Types [Section] -- Keyboard shortcut: 'p'  Next page: Generic Types -- 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 7 : 21

The generic class Set<T>
It is attractive to parameterize the class Set with its element type T
set.cs
The class Set<T>.
app-misc.cs
A client of Set<T> - working with sets of different types.
output
Output from the Set<T> client program.
Go to exercise
Intersection, union, and difference: Operations on sets
Go to exercise
An element access operation on sets
Go to exercise
A generic Pair class

An actual type is provided when the class Set is used, for instance in a client class.