Lecture overview -- Keyboard shortcut: 'u'  Previous page: Generic Types [Section] -- Keyboard shortcut: 'p'  Next page: Generic Types -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 7 : 21
Object-oriented Programming in C#
Generic Types and Methods
The generic class Set<T>

It is attractive to parameterize the class Set with its element type T

/user/normark/oop-csharp-1/sources/c-sharp/set/short/generic/set.csThe class Set<T>.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/generic/app-misc.csA client of Set<T> - working with sets of different types.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/generic/outputOutput from the Set<T> client program.


Go to exerciseIntersection, union, and difference: Operations on sets
Go to exerciseAn element access operation on sets
Go to exerciseA generic Pair class

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