collections/dictionary/0/output - Output from the Dictionary<Person,BankAccount> program. | Lecture 12 - slide 27 : 36 Program 4 |
Initial map Person: Kurt : The account holds 100 kroner Person: Maria : The account holds 200 kroner Person: Francoi : The account holds 300 kroner The account holds 100 kroner bankMap[p1] = ba4; Person: Kurt : The account holds 0 kroner Person: Maria : The account holds 200 kroner Person: Francoi : The account holds 300 kroner ba4.Deposit(400); bankMap[new Person("Maria")] = ba4; Person: Kurt : The account holds 400 kroner Person: Maria : The account holds 400 kroner Person: Francoi : The account holds 300 kroner Account: The account holds 400 kroner. Boolean result True Account: . Boolean result False bankMap.Remove(p1); Person: Maria : The account holds 400 kroner Person: Francoi : The account holds 300 kroner bankMap.Remove(new Person("Francoi")); Person: Maria : The account holds 400 kroner