Data Access, Properties, and Methods
- slide 15 : 29
Example of associating Person with BankAccount
An associative array that maps Person objects to their BankAccount
The class Person.
The class BankAccount - without owner.
The class PersonAccountPair.
The class Accounts - the associative array class.
A client of Accounts.
In real life, this program would be written with use of
Dictionary<Person,BankAccount>