Question: AccountController customers : List + createCustomer(name : String, address : String, type : String) : Customer + create Account(customer : Customer, type : String): Account

 AccountController customers : List + createCustomer(name : String, address : String,type : String) : Customer + create Account(customer : Customer, type :

AccountController customers : List + createCustomer(name : String, address : String, type : String) : Customer + create Account(customer : Customer, type : String): Account + removeCustomer(customer : Customer): void + removeAccount (account: Account) : void + getCustomers(): List + Account - ACCOUNT_ID: long - nextAccountld : long # balance : double + Account() + withdraw(amount : double): double + deposit(amount : double) void + correctBalance(amount : double): void + getACCOUNT_ID(): long + getBalance(): double Customer - CUSTOMER_ID: long -nextCustomerld : long - name : String - address : String - accounts : List + Customer(name : String, address : String) + addAccount(account: Account) : void + removeAccount(account: account) : void + chargeAllAccounts (amount : double): void + getAccounts(): List + getCUSTOMER_ID(): long + getName(): String + setName(name : String): void + getAddress(): String + setAddress(address : String) : void Savings Account - interest Rate : double + addinterest(): void + getinterestRate(): double + setInterestRate(rate : double): void CheckingAccount nextCheckNumber: int + getNextCheckNumber(): int : Person Company In your com.fdmgroup.bankDesign Project package, create all the classes and enumerations shown in the UML. Pay attention to detail and ensure that all attributes, methods, arguments, return types, relationships and modifiers are exactly as shown in the diagram. (4 marks) For the moment you should not write any code within the methods unless they are getters or setters. Do not add any additional attributes or methods that are not in the UML. Make sure that there are no compilation errors in your classes. Testing There are no tests to run for this phase. However the tests you'll be running for later phases rely on you exactly matching the UML. You'll know when this has been done correctly as all the compile errors in the 9 test cases will disappear: src/test/java #com.fdmgroup.bankDesign Project > TestAccountController.java > TestAccountInitialisation.java > TestAccount Methods.java > TestChecking Account.java > TestCompany.java > Test CustomerInitialisation.java > Test Customer Methods.java > TestPerson.java > Test Savings Account.java Step 1 When Account, Savings Account and CheckingAccount have all been created correctly, the compile errors will disappear from TestAccount Methods, TestAccountInitialisation, TestCheckingAccount and Test SavingsAccount. Step 2 When Customer, Person and Company have all been created correctly, the compile errors will disappear from TestCustomerMethods, TestCustomerInitialisation, TestPerson and TestCompany. Step 3 When TestAccountController has been created correctly, all tests will compile

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!