Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started