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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!