| Lecture 11 |
LECTURE 11: Generic Types and Methods Kurt Nørmark © |
A complete PDF version of the text book is now available. The PDF version is an almost complete subset of the HTML version (where only a few, long program listings have been removed). See here. |
Page 1 | Motivation for Generic Types | Page 12 | Variance | |
Page 2 | Operations on sets | Page 13 | Generic structs | |
Page 3 | The classes IntSet and StringSet | Page 14 | Generic interfaces: IComparable<T> | |
Page 4 | The class ObjectSet | Page 15 | Generic equality interfaces | |
Page 5 | Problems | Page 16 | Generic Classes and Inheritance | |
Page 6 | Generic Types | Page 17 | Generic Methods | |
Page 7 | The generic class Set<T> | Page 18 | Generic Methods | |
Page 8 | Generic Types | Page 19 | Generic Delegates | |
Page 9 | Constraints on Formal Type Parameters | Page 20 | Predefined generic delegates | |
Page 10 | Constraints: Strings of comparable elements | Page 21 | Generic types and methods - Pros and Cons | |
Page 11 | Another example of constraints |
Generated: Monday February 7, 2011, 12:20:20 |