Lecture overview -- Keyboard shortcut: 'u'  Previous page: Associative Arrays -- Keyboard shortcut: 'p'  Next page: Summary of indexers in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 15 : 29
Object-oriented Programming in C#
Data Access, Properties, and Methods
Example of associating Person with BankAccount

An associative array that maps Person objects to their BankAccount

/user/normark/oop-csharp-1/sources/c-sharp/associative-arrays/person.csThe class Person.

/user/normark/oop-csharp-1/sources/c-sharp/associative-arrays/bank-account.csThe class BankAccount - without owner. This program is explained

/user/normark/oop-csharp-1/sources/c-sharp/associative-arrays/PersonAccountPair.csThe class PersonAccountPair. This program is explained

/user/normark/oop-csharp-1/sources/c-sharp/associative-arrays/accounts.csThe class Accounts - the associative array class. This program is explained

/user/normark/oop-csharp-1/sources/c-sharp/associative-arrays/client.csA client of Accounts. This program is explained

In real life, this program would be written with use of Dictionary<Person,BankAccount>