Generic Types and Methods
- slide 3 : 21
The classes IntSet and StringSet
A set of int and a set of string are very similar
The class IntSet.
A client of IntSet.
Output from the IntSet client program.
The class StringSet.
A client of StringSet.
Output from the IntSet client program.
It is tedious to make a maintain both of these classes separately