@@ -0,0 +1,868 @@
+package com.accenture.multibank.factory;%0D%0A%0D%0Aimport com.accenture.multibank.accounts.AbstractAccount;%0D%0Aimport com.accenture.multibank.accounts.AccountModifiable;%0D%0Aimport com.accenture.multibank.accounts.AccountType;%0D%0Aimport com.accenture.multibank.accounts.CreditAccount;%0D%0Aimport com.accenture.multibank.accounts.SavingAccount;%0D%0Aimport com.accenture.multibank.generator.AccountNumberGenerator;%0D%0A%0D%0Apublic class AccountFacoryImpl implements AccountFactory %7B%0D%0A%0D%0A%09public AccountModifiable createAccount(AccountNumberGenerator generator, AccountType accountType, int balance) %7B%0D%0A%0D%0A%09%09int accNum = generator.generateAccountNumber();%0D%0A%0D%0A%09%09AbstractAccount acc;%0D%0A%09%09%0D%0A%09%09switch (accountType) %7B%0D%0A%09%09case SAVING:%0D%0A%09%09%09acc = new SavingAccount(accNum, balance);%0D%0A%09%09%09break;%0D%0A%09%09case CREDIT:%0D%0A%09%09%09acc = new CreditAccount(accNum, balance);%0D%0A%09%09%09break;%0D%0A%09%09%09%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%0D%0A%09%09return acc;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

implement createAccount