Navigate to list of lectures -- Keyboard shortcut: 'u'  Previous lecture -- Keyboard shortcut: 'p'  Next lecture -- Keyboard shortcut: 'n'  Course home        Alphabetic index  Exit possible frame set        First slide  First annotated slide  Lecture notes - all slides and notes together  Textbook of this lecture      PDF print page        Help page about these notes
Lecture 11

LECTURE 11:
Generic Types and Methods

Kurt NÝrmark ©
Department of Computer Science, Aalborg University, Denmark

Title page            Abstract            References from this lecture            Exercises in this lecture            Source programs in this lecture            

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 1Motivation for Generic TypesPage 12Variance
Page 2Operations on setsPage 13Generic structs
Page 3The classes IntSet and StringSetPage 14Generic interfaces: IComparable<T>
Page 4The class ObjectSetPage 15Generic equality interfaces
Page 5ProblemsPage 16Generic Classes and Inheritance
Page 6Generic TypesPage 17Generic Methods
Page 7The generic class Set<T>Page 18Generic Methods
Page 8Generic TypesPage 19Generic Delegates
Page 9Constraints on Formal Type ParametersPage 20Predefined generic delegates
Page 10Constraints: Strings of comparable elementsPage 21Generic types and methods - Pros and Cons
Page 11Another example of constraints

LENO - LEcture NOtes with LAML technologyGenerated: Monday February 7, 2011, 12:20:20
Program Oriented Web Engineering - using LAML