In the method associated to the button,
add code that creates 3 BankAccount objects and
carries out transactions on these objects.
The first few lines of this code are provided below:
BankAccount *b1 = [BankAccount alloc];
BankAccount *b2 = [[BankAccount alloc] init];
BankAccount *b3 = [[BankAccount alloc] initWithAmt:1000];
NSLog(@"Balances are now b1:%6.2f b2:%6.2f b3:%6.2f\n",
b1.balance, b2.balance, b3.balance);
Now, add more code that does the following
(the actual code is not provided this time;
you will need to supply these):
We have done something similar with the Car class in the last lecture
session, so you could use that exercise as a guide.
zip the project folder, rename the zip file to Lab3Part1-idnumber.zip
and submit via