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 5

Data Access, Properties, 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 1Accessing Data in ObjectsPage 16Summary of indexers in C#
Page 2Indirect data accessPage 17Methods
Page 3Overview of data access in C#Page 18Methods in C#
Page 4PropertiesPage 19Local variables in methods
Page 5Properties - Basic UsePage 20Parameters
Page 6Properties - Tricky UsePage 21Value Parameters
Page 7Properties in C#Page 22Passing references as value parameters
Page 8Properties: Class Point with polar coordinatesPage 23Passing structs as value parameters
Page 9Automatic PropertiesPage 24Reference Parameters
Page 10Object Initialization via PropertiesPage 25Output Parameters
Page 11Summary of properties in C#Page 26Use of ref and out parameters in OOP
Page 12IndexersPage 27Parameter Arrays
Page 13Indexers in C#Page 28Extension Methods
Page 14Associative ArraysPage 29Methods versus Properties versus Indexers
Page 15Example of associating Person with BankAccount

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