Question: The createAccount method takes a Customer object and an account type as arguments. oIf the type is checking, createCustomer should create a CheckingAccount object, add
The createAccount method takes a Customer object and an account type as arguments. oIf the type is checking, createCustomer should create a CheckingAccount object, add the object to accountControllers list of accounts and to the customers list of accounts. It should return the CheckingAccount object. (1 mark) oIf the type is savings, createCustomer should create a SavingsAccount object, add the object to accountControllers list of accounts and to the customers list of accounts. It should return the SavingsAccount object. (1 mark)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
