I have created the interface accounts and I will inherit and reimplelemnt the behavior in each of the accounts I mention.
Sample code below.
Please help
/* Accounts interface*/
interface Accounts
{
//to do here
}
/*End Accounts interface*/
/************************************************** ****************************/
/*Users Class*/
class Users
{
//Variables
private String userName;
private int userId;
private String userAddress;
private String userEmail;
private double userAccountBalance;
private double userTotalWithdrawals;
private double userTotalDeposits;
Users users=new Users();
ArrayList<Users> UsersList=new ArrayList<Users>(150);//allocate space for 150 Users in our Arraylist
//to do here methods to be specified
//methods below this line
}
/*End Users Class*/
/************************************************** ****************************/
/*Class Savings*/
class Savings implements Accounts
{
//to do here
}
/*End Savings Class*/
/************************************************** ****************************/
/*Class Checking*/
class Checking implements Accounts
{
//to do here
}
/*End Checking Class*/
/************************************************** ****************************/
/*Class Credit Cards*/
class CreditCards implements Accounts
{
//to do here
}